Clickable Graphic Buttons

liunx

Guest
I tried to make a button using a graphic with 2 graphics, one with the button out , and one with the button pushed in by the mouse. I used this script:<br />
<br />
<A HREF=http://www.webdeveloper.com/forum/archive/index.php/"http://www.cnn.com" <br />
onMouseOver="document.pic1.src='http://www.webdeveloper.com/forum/archive/index.php/menu1on.gif'"<br />
onMouseOut="document.pic1.src='http://www.webdeveloper.com/forum/archive/index.php/menu1off.gif'"><br />
<IMG SRC=http://www.webdeveloper.com/forum/archive/index.php/"menu1off.gif" BORDER=0 NAME="pic1"><br />
</a><br />
<br />
and it works, but when I try to add another button both end up not working at all. i made a new set of graphics for the second button also. Does anyone know what I should do?<br />
<br />
Thanx in advance! Ive spent too many hours trying to figure this out.<!--content-->That all the code? Post the code for the second.<!--content-->Ravn, all you need to do is make sure you give each new button a different name on the page...<br />
<br />
<A HREF=http://www.webdeveloper.com/forum/archive/index.php/"http://www.cnn.com/page1.htm" onMouseOver="document.pic1.src='http://www.webdeveloper.com/forum/archive/index.php/menu1on.gif'" onMouseOut="document.pic1.src='http://www.webdeveloper.com/forum/archive/index.php/menu1off.gif'"><IMG SRC=http://www.webdeveloper.com/forum/archive/index.php/"menu1off.gif" BORDER=0 NAME="pic1"></a><br />
<br />
<A HREF=http://www.webdeveloper.com/forum/archive/index.php/"http://www.cnn.com/page2.htm" onMouseOver="document.pic2.src='menu2on.gif'" onMouseOut="document.pic2.src='http://www.webdeveloper.com/forum/archive/index.php/menu2off.gif'"><IMG SRC=http://www.webdeveloper.com/forum/archive/index.php/"menu2off.gif" BORDER=0 NAME="pic2"></a><!--content-->great, cyco, thankyou very much!<!--content-->
 
Back
Top