PDA

View Full Version : Image button



forlorn
08-01-2005, 07:23 AM
http://www.dynamicdrive.com/dynamicindex15/domroll.htm

With reference to the above coding, how do i go about configuring it so that it works for image buttons as well?

jscheuer1
08-01-2005, 08:27 AM
I'm a little rusty on image buttons and, if I recall correctly, there are at least two ways of making them. If you supply the code for your image button, I'll show you how to modify the code from this script to work with it.

IanMarlowe
08-01-2005, 08:34 AM
an easy code is:
<a href="page.html.html" onmouseover="image1.src='pic_over.gif';"
onmouseout="image1.src='pic_off.gif';">
<img name="image1" src="pic_off.gif" border=0></a>

you just cange the img name to image2, image3, etc.......with every new button.
pic_off.gif is the normal picture
pic_on.gif is the picture onmouseover
(page.html is the target page, it can be changed)
any help?