/*********************************************** * MultiFrame Image Slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code ***********************************************/ var seqslides=new Array() //Set Path to Image plus optional URL ("" for no URL): seqslides[0]=["images/logo/airlines/airindia.com.gif", "http://www.airindia.com"] seqslides[1]=["images/logo/airlines/britishairways.com.gif", "http://www.britishairways.com"] seqslides[2]=["images/logo/airlines/cathaypacific.com.gif", "http://www.cathaypacific.com"] seqslides[3]=["images/logo/airlines/flykingfisher.com.gif", "http://www.flykingfisher.com"] seqslides[4]=["images/logo/airlines/goindigo.in.gif", "http://www.goindigo.in"] seqslides[5]=["images/logo/airlines/jetairways.com.gif", "http://www.jetairways.com"] seqslides[6]=["images/logo/airlines/lufthansa.com.gif", "http://www.lufthansa.com"] seqslides[7]=["images/logo/airlines/singaporeair.com.gif", "http://www.singaporeair.com"] seqslides[8]=["images/logo/airlines/spicejet.com.gif", "http://www.spicejet.com"] seqslides[9]=["images/logo/airlines/thaiair.com.gif", "http://www.thaiair.com"] //Set pause between each image display (2000=2 second): var slidedelay=3000 //Set how many images to show at once (must be less than total # of images above): var slidestoreveal=1 //Specify code to insert between each slide (ie: "
" to insert a line break and create a vertical layout) //"" for none (or horizontal): var slideseparater="" //Set optional link target to be added to all images with a link: var optlinktarget="secwindow" //Set image border width: var imgborderwidth=0 //Set opacity value of each image when it's "dimmed", and when it's not, respectively (1=100% opaque/normal). //Change 0.2 to 0 to completely hide image when it's dimmed: var opacityvalues=[0.2,1] ///No need to edit beyond here/////////// function processimgcode(theimg){ var imghtml="" if (theimg[1]!="") imghtml='' imghtml+='' if (theimg[1]!="") imghtml+='' return imghtml } var curslide=1 //var to track current slide (total: slidestoreveal) var curimgindex=0 //var to track current image (total: seqslides.length) var isfirstcycle=1 //boolean to indicate whether this is the first cycle if (document.getElementById){ for (i=0;i'+processimgcode(seqslides[i])+''+slideseparater) curimgindex=slidestoreveal illuminateslide(0,opacityvalues[1]) } function illuminateslide(slideindex, amt){ var slideobj=document.getElementById("seqslide"+slideindex).getElementsByTagName("IMG")[0] if (slideobj.filters) slideobj.filters.alpha.opacity=amt*100 else if (slideobj.style.MozOpacity) slideobj.style.MozOpacity=amt } function displayit(){ if (curslide=seqslides.length) curimgindex=0 } if (document.getElementById) setInterval("displayit()",slidedelay)