slideshow HTML
/*********************************************** * DHTML slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice must stay intact for legal use * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/
var photos=new Array(); var texts=new Array(); var photoslink=new Array(); var numbers=new Array(); var which=3; var currentSlide=which; $MIN_SIZE=1; $MAX_SIZE=9;
//define images. You can have as many as you want: photos[0]="http://www.davidduncanlivingston.com/wp-content/slideshow/graybuffer.png" photos[1]="http://www.davidduncanlivingston.com/wp-content/slideshowimages/1060_950.jpg"; photos[2]="http://www.davidduncanlivingston.com/wp-content/slideshowimages/1227_950.jpg"; photos[3]="http://www.davidduncanlivingston.com/wp-content/slideshowimages/263_950.jpg"; photos[4]="http://www.davidduncanlivingston.com/wp-content/slideshowimages/436_950.jpg"; photos[5]="http://www.davidduncanlivingston.com/wp-content/slideshowimages/renew141.jpg"; photos[6]="http://www.davidduncanlivingston.com/wp-content/slideshowimages/skurman01.jpg"; photos[7]="http://www.davidduncanlivingston.com/wp-content/slideshowimages/skurman03.jpg"; photos[8]="http://www.davidduncanlivingston.com/wp-content/slideshow/graybuffer.png";
texts[0]="this is a test 0 text description"; texts[1]="this is a test 1 text description"; texts[2]="this is a test 2 text description"; texts[3]="this is a test 3 text description"; texts[4]="this is a test 4 text description"; texts[5]="this is a test 5 text description"; texts[6]="this is a test 6 text description"; texts[7]="this is a test 7 text description"; texts[8]="this is a test 8 text description"; texts[9]="this is a test 9 text description"; texts[10]="this is a test 10 text description"; numbers[0]=0; numbers[1]=1; numbers[2]=2; numbers[3]=3; numbers[4]=4; numbers[5]=5; numbers[6]=6; numbers[7]=7; numbers[8]=8; numbers[9]=9;
function changeText(text){ $('textDescription').update("" + text + ""); }
function show_popup(){ window.open(photos[currentSlide], "David Duncan Livingston- Slide"); }
function changeImages(){ document.images.photoslider1.src=photos[which-2]; document.images.photoslider2.src=photos[which-1]; document.images.photoslider3.src=photos[which]; document.images.photoslider4.src=photos[which+1]; } function backward(){ if(which==$MIN_SIZE){return;} which--; changeImages(); changeText(texts[which]); currentSlide=which; }
function forward(){ if(which==$MAX_SIZE){return;} which++; changeText(texts[which]); currentSlide=which; }
function transport(){ window.location=photoslink[which] }
body{background-color:#8c8673; }









