Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2003
    Location
    Pensacola, FL
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    putting animated gif's in a linked slide show

    Is it possible to use animated gif's in a linked slide show? I was trying to use " JavaScript image slideshow (increment preload image)" that I found on the javascriptkit site and it works, but I wanted to use animated gif's, which I can't seem to figure out.

  • #2
    Regular Coder
    Join Date
    Jun 2003
    Location
    Spokane, WA
    Posts
    512
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Do you have an example code that I could see?
    If I have something to work with, I can probably get you a solution... I think I know what the problem is, but I would have to see the code first....

  • #3
    New to the CF scene
    Join Date
    Jun 2003
    Location
    Pensacola, FL
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    animated gif thing

    Here is the code I was trying to work with and I was also trying to put it in a site the is in frames, if that matters. I was trying to put it in the top header frame.


    <SCRIPT LANGUAGE="JavaScript">
    <!--

    /*
    Script by FPMC at http://jsarchive.8m.com
    Submitted to JavaScript Kit (http://javascriptkit.com)
    For this and 400+ free scripts, visit http://javascriptkit.com
    */

    //set image paths
    src = ["image1.gif", "image2.gif", "image3.gif", "image4.gif"]


    //set corresponding urls
    url = ["http://freewarejava.com", "http://javascriptkit.com", "http://dynamicdrive.com", "http://www.geocities.com"]

    //set duration for each image
    duration = 4;

    //Please do not edit below
    ads=[]; ct=0;
    function switchAd() {
    var n=(ct+1)%src.length;
    if (ads[n] && (ads[n].complete || ads[n].complete==null)) {
    document["Ad_Image"].src = ads[ct=n].src;
    }
    ads[n=(ct+1)%src.length] = new Image;
    ads[n].src = src[n];
    setTimeout("switchAd()",duration*1000);
    }
    function doLink(){
    location.href = url[ct];
    } onload = function(){
    if (document.images)
    switchAd();
    }
    //-->
    </SCRIPT>

    <A HREF="javascript:doLink();" onMouseOver="status=url[ct];return true;"
    onMouseOut="status=''">
    <IMG NAME="Ad_Image" SRC="image1.gif" BORDER=0>
    </A>

    <p align="center"><font face="arial" size="-2">This free script provided by <a href="http://javascriptkit.com">JavaScript Kit</a></font></p>


  •  

    Posting Permissions

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