Jump to content

onmouseOver/onmouseOut


steffalynn

Recommended Posts

HELP PLEASE! I can't seem to get this to work . . . if you use the code, my "survey" part highlights but not my "playersbench" part. Also, the "survey" image remains highlighted while I'm mousing over the "playersbench" part on top of it, but I can't seem to find any problems with my table setup. Here's the code in my head spot:

<script type="text/javascript">function mouseOver(){document.b1.src ="images/glowplayersbench.jpg"}function mouseOut(){document.b1.src ="images/playersbench.jpg"}function mouseOver(){document.b2.src ="images/glowsurvey.jpg"}function mouseOut(){document.b2.src ="images/survey.jpg"}</script>

. . . and here's what I inserted in the document:

<TR><TD><a href="playersbench.htm"><img border="0" src="images/playersbench.jpg" width="192" height="36"name="b1"onmouseOver="mouseOver()"onmouseOut="mouseOut()" /></a>			</TD>	</TR>	<TR>		<TD><a href="survey.htm"><img border="0" src="images/survey.jpg"  width="192" height="36"name="b2"onmouseOver="mouseOver()"onmouseOut="mouseOut()" /></a>						</TD>	</TR>

Link to comment
Share on other sites

you are defiing your functions twice you cannot have 2 functions with the same name and expect them to do different things. The function takes what you defined last.make a mouseOut1 and mouseOut2...etc and use them accordingly.

Link to comment
Share on other sites

you are defiing your functions twice you cannot have 2 functions with the same name and expect them to do different things. The function takes what you defined last.make a mouseOut1 and mouseOut2...etc and use them accordingly.
ah HA! You just made my day so much easier. Thanks A-netguy!
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...