Hey i was trying to do this for a while with no luck.
I have this code:
<a href="http://mysite.com/folder?iframe=true&width=750&height=550" rel="prettyPhoto[iframes]"> <img src="http://mysite.com/wp-content/uploads/2012/11/optinimg.jpg"> </a>
How can i add hover to the img src with another image? Thanks
onMouseOver="document.images['mousetest'].src='http://images.proboards.com/new/tongue.png'" onMouseOut="document.images['mousetest'].src='http://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.
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?
Here are two ways http://www.visibilityinherit.com/code/linked-image-swap.php. The third would be to have both images in a sprite. And shift the background position on hover.
Have you tried to accomplish this by doing what you posted?
@amoss
really, all you need to do is wrap your code with pre and code tags. E.g.
<.pre><.code></.code></.pre>
minus the periods of course...
@kgscott284
Thank you.
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
onMouseOver="document.images['mousetest'].src='http://images.proboards.com/new/tongue.png'" onMouseOut="document.images['mousetest'].src='http://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.
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?
Here are two ways http://www.visibilityinherit.com/code/linked-image-swap.php. The third would be to have both images in a sprite. And shift the background position on hover.
Have you tried to accomplish this by doing what you posted?
@amoss
really, all you need to do is wrap your code with pre and code tags. E.g.
<.pre><.code></.code></.pre>
minus the periods of course...
@kgscott284
Thank you.