Forums

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
    Posts
  • #129644
    Yammaski
    Member

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

    #129646
    Paulie_D
    Member

    >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.

    #129647
    Yammaski
    Member

    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 %>

    #129652
    JohnMotylJr
    Participant

    Is that language vb.net?? 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?

    #129654
    Yammaski
    Member

    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.