-
very simple dynamic page need modify
a very simple page to swap image, (tried two types, a href and button both can swap image), i hope the text "01" or "02" will be different background-color when viewed, how?
<a href="#" onClick= "document.images.show.src = '01.jpg'">01</a>
<a href="#" onClick= "document.images.show.src = '02.jpg'">02</a>
<input type=button onClick= "document.images.show.src = '01.jpg'" value="01">
<input type=button onClick= "document.images.show.src = '02.jpg'" value="02">
<img src="01.jpg" name="show">
thanks!
-
-
what image are you trying to swap, exactly? is it actually a button, a background-image, or is it just a normal image on the page?
-
-
thks.
here is an example, the first is my code:"View Image"

the 2 & 3 is code of "Featured Content Slider v2.4"
http://www.dynamicdrive.com/dynamici...tentslider.htm
i hope the text of "01", "02" has different background-color when be viewed, like "Featured Content Slider v2.4"

-
-
the "Featured Content Slider v2.4" is complex, i can't modify it now.
-
-
Are trying to change the button background, when you use text, or change an image when you "hover" over it.
This was covered in this thread, http://www.dynamicdrive.com/forums/s...ad.php?t=44149, in the CSS forum last month.
-
-
thank you!
i want the button/link change the background-color when viewed (including mouse move out)
see http://www.dynamicdrive.com/dynamici...tentslider.htm
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks