Results 1 to 9 of 9

Thread: [Javascript] - function doesn't work properly in IE{Resolved}

Threaded View

  1. #1

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Resolved [Javascript] - function doesn't work properly in IE{Resolved}

    I've got a function that changes a dot beside navigations to a larger dot, symbolizing you are hovering over the navigation. On mouse out, the dot is suppose to change back to being small. This script works perfectly in firefox, but doesn't work correctly in IE. I'm thinking there is something wrong with my syntax, but not sure what it is:

    Code:
    		<script language="javascript">
    			function change(name)
    			{
    				if((document.getElementById(name).getAttribute('src')) == "dotTWO.jpg")
    				{
    					document.getElementById(name).src = "dotONE.jpg";
    				}
    				else
    				{
    					document.getElementById(name).src = "dotTWO.jpg";
    				}
    			}
    				
    		</script>
    Last edited by System_Error; Sep 24th, 2005 at 09:21 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width