<script type="text/javascript"> // credits: // random order slideshow with messages // concept by urs dudli and peter gehrig // rewritten for this site by jim stiles www.jdstiles.com /////////////////////////////////////////////////////////////////////////// // configuration starts here /////////////////////////////////////////////////////////////////////////// // replace the urls of the slides and the corresponding messages. // please note that the url and the correponding message are separated by "|". // watch how the "," and the " " are set! // you may add as many slides as you like. // important: do not use the return-key to break the lines!!! var slideshow=new array("http://images.kamalkantkhan.multiply.com/image/3/photos/31/600x600/71/plane 6-a.gif?et=qbkbkmj51asnhpe21mhmnq|a young tazz.", "http://images.kamalkantkhan.multiply.com/image/3/photos/31/600x600/72/plane7a.gif?et=aqmtewd7kow9wzgkg%2bod7g|relaxing on the weekend!", "http://images.kamalkantkhan.multiply.com/image/3/photos/31/600x600/73/projectora.gif?et=2eet%2bih4b%2b4fy7ydkotqza|here\'s looking at you.", "http://images.kamalkantkhan.multiply.com/image/3/photos/31/600x600/74/radio1a.gif?et=auy8aue2ntffs0onhm87ea|getting some sun.", "http://images.kamalkantkhan.multiply.com/image/3/photos/31/600x600/75/radio2a.gif?et=6o9qdu78%2cnjutonzky2ctg|this is my throne!", "http://images.kamalkantkhan.multiply.com/image/2/photos/31/600x600/76/r-horsea.gif?et=4px0zaee08dwws4zg%2chj1q|watching television.", "http://images.kamalkantkhan.multiply.com/image/2/photos/31/600x600/77/scale1a.gif?et=i4954tsigk1tub258hhcna|i run this household.", "http://images.kamalkantkhan.multiply.com/image/2/photos/31/600x600/78/signpostb.gif?et=fddqo9hsgwy5b14nejnyrq", "http://images.kamalkantkhan.multiply.com/image/2/photos/31/600x600/79/scale2c.gif?et=jlhhlrcdshmb8aukxzuluw") // the font-family of the messages var fntfamily="verdana" // the font-size of the messages (ranging from 1 to 6) var fntsize=2 // the font-color of the messages // instead of "yellow" you also could write "ffff00" var fntcolor="f5deb5" // the background-color of the messages // instead of "black" you also could write "000000" var bgrndcolor="8b0000" // the width of the slides (pixels) var imagewidth=500 // the height of the slides (pixels) var imageheight=500 // the minimum interval between each slide (seconds) var standstill=7
/////////////////////////////////////////////////////////////////////////// // configuration ends here /////////////////////////////////////////////////////////////////////////// // do not change the code below var imgstop=0 var imgsleft=0 var mestop=imageheight var mesleft=0 var firstslide=true var starttime var nowtime var imgurl=new array() var message=new array() var imgurlandmessagearray=new array() var imgurlandmessage var imgpreload=new array() var playertop=0 var playerleft=0 var i_imgs=0 var i_loop=0 var i_preloadloop=0 var i_transition=0 var timerrotate=false var timercheck=false var contentimg var contentmes var slideshowlength=slideshow.length var topdivheight=imageheight+40 var ns6=document.getelementbyid&&!document.all?1:0 var standstill=standstill*1000 function init() { firstslide=true i_imgs=0 i_loop=0 i_preloadloop=randommaker(slideshowlength) if (timerrotate) { cleartimeout(timerrotate) cleartimeout(timercheck) } imgurl=new array message=new array for (i=0;i<=slideshow.length-1;i++) { imgurlandmessage=slideshow[i].split("|") imgurl[i]=imgurlandmessage[0] message[i]=imgurlandmessage[1] } if (document.all) { imgs.innerhtml="" mes.innerhtml="" document.all.imgs.style.postop=imgstop document.all.imgs.style.posleft=imgsleft document.all.mes.style.postop=mestop
document.all.mes.style.posleft=mesleft checkpreloadtime() preloadimage() checkifloaded()
} if (ns6) { document.getelementbyid('imgs').innerhtml="" document.getelementbyid('mes').innerhtml="" document.getelementbyid('imgs').style.top=imgstop document.getelementbyid('imgs').style.left=imgsleft document.getelementbyid('mes').style.top=mestop document.getelementbyid('mes').style.left=mesleft checkpreloadtime() preloadimage() checkifloaded() } if (document.layers) { document.topdiv.document.imgs.document.write("") document.topdiv.document.imgs.document.close() document.topdiv.document.mes.document.write("") document.topdiv.document.mes.document.close() document.topdiv.document.imgs.top=imgstop document.topdiv.document.imgs.left=imgsleft document.topdiv.document.mes.top=mestop document.topdiv.document.mes.left=mesleft checkpreloadtime() preloadimage() checkifloaded() } } function checkifloaded() { if (imgpreload.complete) { nowtime=new date() nowtime=nowtime.gettime() nowtime=nowtime-starttime var interval=standstill-nowtime if (interval<=0 ) { interval=1 } if (firstslide) { interval=1 firstslide=false } if (i_preloadloop==i_loop) { interval=1 } timerrotate=settimeout("rotateimages()", interval) } else { timercheck=settimeout("checkifloaded()", 100) } } function preloadimage() { imgpreload=new image() imgpreload.src=imgurl[i_preloadloop] }
function rotateimages() { i_loop=i_preloadloop i_preloadloop=randommaker() checkpreloadtime() preloadimage() getcontent() if (document.all) { imgs.filters[i_transition].apply() imgs.innerhtml=contentimg imgs.filters[i_transition].play() i_transition++ if (i_transition>21) {i_transition=0} mes.innerhtml=contentmes } if (ns6) { document.getelementbyid('imgs').innerhtml=contentimg document.getelementbyid('mes').innerhtml=contentmes } if (document.layers) { document.topdiv.document.imgs.document.write(contentimg) document.topdiv.document.imgs.document.close() document.topdiv.document.mes.document.write(contentmes) document.topdiv.document.mes.document.close() } i_loop++ checkifloaded() } function randommaker() { rand=math.floor(slideshowlength*math.random()) return rand } function getcontent() { contentimg="
" contentmes="
" } if (document.all) { document.write('
') document.write('
') document.write('
') document.write('
') } if (ns6) { document.write('
') document.write('
') document.write('
') document.write('
') } if (document.layers) { document.write('
') document.write(' ') document.write(' ') document.write('') } function checkpreloadtime() { starttime= new date() starttime=starttime.gettime() } function checktime() { } window.onresize=new function("window.location.reload()"); window.onload=init