Announcement

Collapse
No announcement yet.

Rotating text

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Rotating text

    Hello....

    I have a site with 3 rotating images that when clicked take you to the actinic product page.

    http://www.calmproductions.com

    Now this works fine in Firefox / Safari but IE is having a issue with it.

    This is the code for it.

    !!<<html>
    <head>
    <script type="text/javascript">
    <!--
    //preload images
    var image1=new Image()
    image1.src="acatalog/mainad/OfftheHook.jpg"
    var image2=new Image()
    image2.src="acatalog/mainad/InPursuit.jpg"
    var image3=new Image()
    image3.src="acatalog/mainad/livingthedream.jpg"
    //-->
    </script>
    </head>
    <body>
    <a href="javascript:slidelink()">
    <img src="img1.jpg" name="slide" border="0" width="485" height="205" /></a>
    <script type="text/javascript">
    <!--
    var step=1
    var whichimage=1
    function slideit(){
    if (!document.images)
    return
    document.images.slide.src=eval("image"+step+".src")
    whichimage=step
    if (step<3)
    step++
    else
    step=1
    setTimeout("slideit()",5000)
    }
    slideit()
    function slidelink(){
    if (whichimage==1)
    window.location="http://www.calmproductions.com/acatalog/offthehook.html#a207"
    else if (whichimage==2)
    window.location="http://www.calmproductions.com/acatalog/inpursuit.html#aIPL_2dDVD"
    else if (whichimage==3)
    window.location="http://www.calmproductions.com/acatalog/livingdream.html#a192"
    }
    //-->
    </script>
    </body>
    </html>>!!

    I know its a bit off topic as its not an Actinic problem but was hoping someone may have come across something like this.

    Cheers

    Glen

    #2
    Hello... me again

    I have resolved the issue.

    There is nothing wrong with the code, bit of a schoolboy error with the images.

    Normal service has been resumed.
    Last edited by Wizzo; 06-Apr-2011, 12:07 PM. Reason: spello

    Comment

    Working...
    X