...

View Full Version : JavascriptKit INCREMENT LOAD script



waxdoc
05-18-2009, 01:46 AM
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/script2/flexibleslide.shtml


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/script2/incrementslide.shtml cannot figure how to convert the script to an [array] or how to adapt the above caption and pause magic of Mr.J.



//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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum