I would like to have an image color change when mousing over it, thus defining it as a link. What do I have to do to make this happen? Thanks.
Announcement
Collapse
No announcement yet.
mouseover image help
Collapse
X
-
You have to have two images.
Oh, you could change the *BORDER* color easy enough, but you can change the contents of an image, per se. (I guess you could put a semi-transparent overlay over the image, but that would (a) be a LOT more work and (b) obscure the image somewhat. So just go with two images. Or be happy with the border color changing.)Be yourself. No one else is as qualified.
-
if you just want your image to change brightness, you might try this.
http://h1.ripway.com/stirfry/javascr...acitySwap.html
Comment
-
Originally posted by petalmax View PostI couldn't tell from this link how an image changes brightness. It shows a small box upper left side that doesn't change at all. I checked this in Safari and Firefox browsers. Thanks.
Comment
-
You could change some aspects of the image without javascript simply by using css. You could declare a div within the link, and make your image the background image. Then declare a hover property to change the image:Code:<div id="div1"><a href="#"> </a></div>
Code:#div1 a {display: block; background-image: url(Trees1.jpg); width:300px; height: 247px; } #div1 a:hover {background-image: url(Trees2.jpg); }
John
Comment
-
-
Originally posted by Actinia View PostYou may find it helps to pre-load the hover image. Note I have given the div a height and width corresponding to my images. Here is a example of this: http://www.actinia.me.uk/hover/hover.htm
John
I found the rollover effect quite delaying all the time so I tried to experiment a mouse-over with a "semi-transparent" using the DIV tags within a DIV container. Got it almost working but if I mouseover the original image (which actually should still be seen, but dimmed, because of the semi-transparent, so this original image just disappears... I am a bit lost here and wonder if someone here could help out?
I's all CSS, no java script
Thanks a lot
Comment
-
Originally posted by Old Pedant View PostYou have to have two images.
Oh, you could change the *BORDER* color easy enough, but you can change the contents of an image, per se. (I guess you could put a semi-transparent overlay over the image, but that would (a) be a LOT more work and (b) obscure the image somewhat. So just go with two images. Or be happy with the border color changing.)
Comment
-
Originally posted by Renegades View PostHello
I found the rollover effect quite delaying all the time so I tried to experiment a mouse-over with a "semi-transparent" using the DIV tags within a DIV container. Got it almost working but if I mouseover the original image (which actually should still be seen, but dimmed, because of the semi-transparent, so this original image just disappears... I am a bit lost here and wonder if someone here could help out?
I's all CSS, no java script
Thanks a lot
Comment
Comment