steffalynn Posted December 7, 2006 Share Posted December 7, 2006 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 More sharing options...
aspnetguy Posted December 7, 2006 Share Posted December 7, 2006 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 More sharing options...
steffalynn Posted December 7, 2006 Author Share Posted December 7, 2006 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 More sharing options...
steffalynn Posted December 20, 2006 Author Share Posted December 20, 2006 Okay, new question: I'm getting gaps underneath each of my links . . . any ideas? Link to comment Share on other sites More sharing options...
steffalynn Posted December 21, 2006 Author Share Posted December 21, 2006 AWESOME I FIGURED IT OUT!gotta make sure that all your link and image tags are all on one continuous line. if anyone needs help with this, pm me and i'll explain better. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now