...

View Full Version : swap to .swf files mouseover



antanuko_rytas
11-16-2010, 08:31 PM
hello, guys,
i am trying to change one .swf file to another on mouseover.
I tried to edit script witch swaps two images, but it did not worked.
Can anyone help me?

here is the code i tried to change:

<head>
<title>expend</title>
<script type="text/javascript" language="javascript">
//preload images:

a1 = new Image(200,200);
a1.src = "picture1.jpg";
a2 = new Image(200,200);
a2.src = "picture2.jpg";

//image swapping function:
function hiLite(imgDocID, imgObjName, comment) {
document.images[imgDocID].src = eval(imgObjName + ".src");
window.status = comment; return true;
}
//end hiding
</script>
</head>
<body>
<img alt="onmouse" src="picture1.jpg" onmouseover="this.src='picture1.jpg'; this.style.width='200px'; this.style.heigtht='200px';" onmouseout=" this.src='picture2.jpg'; this.style.width='200px'; this.style.heigtht='200px';">
</body>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum