Help with javascript

  1. #1
    Tassie Devil is offline DAL Aussie Contingent

    Help with javascript

    Hi all. I'm adding a page to our business website and need help.
    I have a 6 frame animation that I would like to show on mouse over. Currently I only have a static image with a click to see the animation which opens on a new page but it gives the impression of being too simple?. http://www.hoistandcrane.com.au/mobile.htm
    I have tried several javascripts but none seem to work. I know its something simple I'm missing but I give up after 3 hours.


  2. #2
    Tassie Devil is offline DAL Aussie Contingent
    Tackle the Web with $5.99 .COM's from Go Daddy!
    I found one that works. http://javascript.internet.com/gener...ad-images.html

    Code:
    <!-- TWO STEPS TO INSTALL PRELOAD IMAGES:
    
       1.  Paste the first into the HEAD of your HTML document
       2.  Add the last code into the BODY of your HTML document  -->
    
    <!-- STEP ONE: Copy this code into the HEAD of your HTML document  -->
    
    <HEAD>
    
    <SCRIPT LANGUAGE="JavaScript">
    
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->
    
    <!-- Begin
    
    image1 = new Image();
    image1.src = "http://www.hoistandcrane.com.au/testbed.gif";
    
    // End -->
    </script>
    </HEAD>
    
    <!-- STEP TWO: Insert this code into the BODY of your HTML document  -->
    
    <BODY>
    
    <a href="http://www.hoistandcrane.com.au/mobile.htm" onmouseover="image1.src='http://www.hoistandcrane.com.au/testbed.gif';"
    onmouseout="image1.src='http://www.hoistandcrane.com.au/test2.gif';">
    <img name="image1" src="http://www.hoistandcrane.com.au/test2.gif" border=0></a>
    
    </BODY>

+ Reply to Thread