Cell, mouseover problem.

liunx

Guest
Hi,<br />
<br />
I have created a table with four cells to hold my buttons, but I am having problems to get the mouseover effect to work on each one individually. The first button in the first cell works, but then when I try adding the code for the other buttons in their cells it only causes the first one (cell) to work.<br />
<br />
Could anyone help?<!--content-->You have to give your images a name.<br />
In the script, and call them by name in the link.<br />
<br />
Example:<br />
in the script<br />
on1=new Image(150,20)<br />
on1.src=http://www.htmlforums.com/archive/index.php/"wrd_volgp.gif"<br />
of1=new Image(150,20)<br />
of1.src=http://www.htmlforums.com/archive/index.php/"wrd_vorigep.gif"<br />
on2=new Image(150,20)<br />
on2.src=http://www.htmlforums.com/archive/index.php/"hateshep3.gif"<br />
of2=new Image(150,20)<br />
of2.src=http://www.htmlforums.com/archive/index.php/"hateshep2.gif"<br />
<br />
And in the link:<br />
image no 1<br />
<a href=http://www.htmlforums.com/archive/index.php/"#" onmouseover="filter('img1','on1'); window.status='Status Message';return true;" onmouseout="filter('img1','of1'); window.status='';return true;" onclick="window.focus()"><img SRC=http://www.htmlforums.com/archive/index.php/"wrd_vorigep.gif" NAME="img1" NOSAVE BORDER=0 height=20 width=150></a><br />
<br />
image no2<br />
<a href=http://www.htmlforums.com/archive/index.php/"#" onmouseover="filter('img2','on2'); window.status='Status Message';return true;" onmouseout="filter('img2','of2'); window.status='';return true;" onclick="window.focus()"><img SRC=http://www.htmlforums.com/archive/index.php/"hateshep2.gif" NAME="img2" NOSAVE BORDER=0 height=94 width=85></a><br />
<br />
:rocker:<!--content-->
 
Back
Top