The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Flip image horizontally with selectmenu.

  • This topic is empty.
Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
  • #129644

    Because there are 2 id’s on the page, but they are in my asp-code with an if-statement.


    >Because there are 2 id’s on the page

    I’m not sure what that means…either way…it shouldn’t be necessary.

    Either something is unique (and gets an ID) or it isn’t…in which case it should get a class to group it with other similar elements.


    I hope it gets more clearly when you see my asp code :

    <% If (rsDetail.Fields.Item("ProductCatID").Value) = 32 Then %>
    " alt="<%=(rsDetail.Fields.Item("ProductName").Value)%> sticker" name="Image" id="Image" title="" />

    <% Else %>
    " alt="<%=(rsDetail.Fields.Item("ProductName").Value)%> sticker" name="ImageNoTrans" id="ImageNoTrans" title="" />

    <% End If %>


    Is that language Only reason i ask is the ‘Then’, anywho…. What are you trying to accomplish with two ID’s? I think you misunderstood what toggleClass does, and from what i see in your ASP is you are trying to switch the ID’s rather then the classes?

    Are you wanting this operation to happen on the server side rather then through JS?


    ASP VBScript
    The page is a Detail-page wich is used by multiple other pages(categorie).
    If the categorie =32, then the page uses another div. The image id is for a javascript behind.

Viewing 5 posts - 16 through 20 (of 20 total)
  • The forum ‘CSS’ is closed to new topics and replies.