View Full Version : very simple dynamic page need modify
netbean
05-08-2009, 11:10 PM
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?:confused:
<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?
netbean
05-09-2009, 05:08 AM
thks.
here is an example, the first is my code:"View Image"
http://f.imagehost.org/0820/View_Image_Opera.jpg
the 2 & 3 is code of "Featured Content Slider v2.4"
http://www.dynamicdrive.com/dynamicindex17/featuredcontentslider.htm
i hope the text of "01", "02" has different background-color when be viewed, like "Featured Content Slider v2.4"
http://f.imagehost.org/0577/Dynamic_Drive_DHTML_ScriptsFeatured_Content_Slider_v2_4_Opera.jpg
http://f.imagehost.org/0100/Dynamic_Drive_DHTML_ScriptsFeatured_Content_Slider_Opera.jpg
netbean
05-09-2009, 05:14 AM
the "Featured Content Slider v2.4" is complex, i can't modify it now.
forum_amnesiac
05-10-2009, 04:58 PM
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/showthread.php?t=44149, in the CSS forum last month.
netbean
05-10-2009, 07:39 PM
thank you!
i want the button/link change the background-color when viewed (including mouse move out)
see http://www.dynamicdrive.com/dynamicindex17/featuredcontentslider.htm
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.