|
|
|
|
![]() ![]() |
Dec 15 2005, 05:15 PM
Post
#11
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 582 Joined: 9-May 05 From: Oshawa, Ontario, Canada, North America, Planet Earth, Our Sun's Orbit, Milky Way Galaxy, The Universe, Beyond Member No.: 6,839 |
I just did image rollovers the other day, thought my approach was a little different, and was a linked image. What I did was:
CODE <a href="#" onMouseOver="document.image1.src='images/image1_ro.jpg';" onMouseOut="document.image1.src='images/image1.jpg';"><img src="images/image1.jpg" name="image1" id="image1" border="0"></a> I'll have to try out your example soon, and see if I can get it to work. I'm not all that advanced in Javascript I'll admit, and I'm a little intimadated by what I see. |
|
|
|
Mar 21 2007, 07:42 PM
Post
#12
|
|
|
Newbie ![]() Group: Members Posts: 5 Joined: 21-March 07 Member No.: 40,446 |
If you find yourself unable to use javascript, or desire an alternative.
I would suggest using CSS. here is the basic idea of what you need in your CSS entry. CODE link_text {/*make the link text transparent*/ visibility: hidden; } .link_href {/*Display this image in the link area*/ background: url(imagepath/mouseout_button.gif) no-repeat; } .link_href:hover {/*Display this image in the link area when you mouseover*/ background: url(imagepath/mouseover_button.gif) no-repeat; } |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 28th August 2008 - 11:45 PM |