Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Thanked 0 Times in 0 Posts

    swap to .swf files mouseover

    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';">
    Last edited by antanuko_rytas; 11-16-2010 at 08:36 PM.


Posting Permissions

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