Forums

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

Home Forums CSS Hover to img a href?

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #40616
    xellero
    Member

    Hey i was trying to do this for a while with no luck.

    I have this code:



    How can i add hover to the img src with another image?
    Thanks

    #113363
    amoss
    Participant

    onMouseOver=”document.images.src=’//images.proboards.com/new/tongue.png'”
    onMouseOut=”document.images.src=’//images.proboards.com/new/smiley.png'”

    To a mod, I would love a tut on how to post correctly on here without looking like an ass. Thanks.

    #113364
    xellero
    Member

    Thanks. Thats JS. Is there a way to acomplish this using the :hover tag?
    Maybe if i can add a class and a background image to the a href eliminating the img src tag?

    #113371
    amoss
    Participant

    Have you tried to accomplish this by doing what you posted?

    #113372
    kgscott284
    Participant

    @amoss

    really, all you need to do is wrap your code with pre and code tags. E.g.

    <.pre><.code>

    minus the periods of course…

    #113380
    amoss
    Participant

    @kgscott284

    Thank you.

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