|
-
Sep 21st, 2005, 05:06 PM
#1
Thread Starter
Frenzied Member
[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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|