Javascript onMouseOver code problem?

<head>

<script language="JavaScript">

<!--

// PRELOADING IMAGES

if (document.images) {

img_on =new Image(); img_on.src ="../PICS/sparkles.gif";

}

function handleOver() {

if (document.images) document.imgName.src=img_on.src;

}

//-->

</script>

</head>

<body>

<a href="index.php" onMouseOver="handleOver();return true;" target="_parent">Home</a><br/>

</body>

What am I doing wrong? I want my text to have the sparkles image (transparent) show up on top of my text whenever someone hovers over it. Here is my site so you can see it's doing nothing. http://www.starlilycoco.com/

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 QUIZLS.COM - All rights reserved.