View Full Version : swap to .swf files mouseover

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:

<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
<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';">