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 1 of 1
  1. #1
    Regular Coder
    Join Date
    Jul 2008
    Posts
    157
    Thanks
    9
    Thanked 13 Times in 13 Posts

    JavascriptKit INCREMENT LOAD script

    For IMAGE CAPTIONS , (see forum http://www.codingforums.com/showthread.php?t=143543 for adding caption/title July08 and onMouseOver PAUSE Aug08) Mr.J. helpfully added the following to Flexible Image Slideshow http://javascriptkit.com/script/scri...bleslide.shtml

    Code:
     if(ultishowCopy[currentslide][3]){ ultcontainer+='<div>'+ultishowCopy[currentslide][3]+'</div>' }
    And for a MouseOver PAUSE
    Give the following a try using the previous script
    Add as a global
    timer=null
    change this line
    ultcontainer+='
    to
    ultcontainer+='
    and change this line
    setTimeout("rotateimages()",slidedelay)
    to
    timer=setTimeout("rotateimages()",slidedelay)
    Now, for the INCREMENT LOAD http://www.javascriptkit.com/script/...entslide.shtml cannot figure how to convert the script to an [array] or how to adapt the above caption and pause magic of Mr.J.

    Code:
     
    //set image paths
      src = ["action.jpg", "coexistance.jpg", "flight.jpg",  "kiss.jpg"]
    //set corresponding urls
       url = ["http://www.chanit.com", "http://www.auntnini.com",             "http://www.jacquimorgan.com", 
       "http://www.chanit.com/gallery/index.htm"]
    //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(); }
    I'm trying this (without success) at http://tchotches.tripod.com/increment.html
    Last edited by waxdoc; 05-18-2009 at 02:04 AM. Reason: add forum reference


 

Posting Permissions

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