this was working. not sure what i changed that broke it…
[code=php]
<form action=”‘.$_SERVER[‘PHP_SELF’].’?action=go” method=”post” enctype=”multipart/form-data”>
<input type=”image” src=”./images/staroff.gif” name=”va” id=”a” onmouseover=”a.src=’./images/star.gif’;” onmouseout=”a.src=’./images/staroff.gif’;” />
<input type=”image” src=”./images/staroff.gif” name=”vb” id=”b” onmouseover=”a.src=’./images/star.gif’; b.src=’./images/star.gif’;” onmouseout=”a.src=’./images/staroff.gif’; b.src=’./images/staroff.gif’;” />
<input type=”image” src=”./images/staroff.gif” name=”vc” id=”c” onmouseover=”a.src=’./images/star.gif’; b.src=’./images/star.gif’; c.src=’./images/star.gif’;” onmouseout=”a.src=’./images/staroff.gif’; b.src=’./images/staroff.gif’; c.src=’./images/staroff.gif’;” />
<input type=”image” src=”./images/staroff.gif” name=”vd” id=”d” onmouseover=”a.src=’./images/star.gif’; b.src=’./images/star.gif’; c.src=’./images/star.gif’; d.src=’./images/star.gif’;” onmouseout=”a.src=’./images/staroff.gif’; b.src=’./images/staroff.gif’; c.src=’./images/staroff.gif’; d.src=’./images/staroff.gif’;” />
<input type=”image” src=”./images/staroff.gif” name=”ve” id=”e” onmouseover=”a.src=’./images/star.gif’; b.src=’./images/star.gif’; c.src=’./images/star.gif’; d.src=’./images/star.gif’; e.src=’./images/star.gif’;” onmouseout=”a.src=’./images/staroff.gif’; b.src=’./images/staroff.gif’; c.src=’./images/staroff.gif’; d.src=’./images/staroff.gif’; e.src=’./images/staroff.gif’;” />
</form>
as you can tell, when the form loads i get 5 submit buttons that are ‘star’, onmouseover i want to change it to ‘staroff’, then back to ‘star’ when mouseout (i know, i named it wrong and dont want to bother changing the names) — i had it workin at one point… and changing it by id (a b c d and e),now i get an error.. “a is not defined” and no images swap
where did i change this to break it? and how can i fix it?