//Preloaded slideshow script- By Jason Moon //For this script and more //Visit http://www.dynamicdrive.com // Duration of each slide (in miliseconds) var Duration = 4000; // PUT THE URL'S OF YOUR IMAGES INTO THIS ARRAY... var Slides = new Array('images/slide1.gif','images/slide2.gif','images/slide3.gif','images/slide4.gif','images/slide5.gif','images/slide6.gif','images/slide7.gif','images/slide8.gif','images/slide9.gif'); // DO NOT EDIT BELOW THIS LINE! function CacheImage(ImageSource) { // TURNS THE STRING INTO AN IMAGE OBJECT var ImageObject = new Image(); ImageObject.src = ImageSource; return ImageObject; } function RotateSlides() { if (SlideReady) { NextSlide = CurrentSlide + 1; // THIS WILL DISABLE THE BUTTONS (IE-ONLY) // document.SlideShow.Previous.disabled = (NextSlide == 0); // document.SlideShow.Next.disabled = (NextSlide == (Slides.length-1)); if (NextSlide >= Slides.length) { NextSlide = 0; } if ((NextSlide >= 0) && (NextSlide < Slides.length)) { document.images['Screen'].src = Slides[NextSlide].src; CurrentSlide = NextSlide++; Message = 'Picture ' + (CurrentSlide+1) + ' of ' + Slides.length; self.defaultStatus = Message; CacheNextSlide(); } setTimeout("RotateSlides()", Duration); return true; } } function ShowSlide(Direction) { if (SlideReady) { NextSlide = CurrentSlide + Direction; // THIS WILL DISABLE THE BUTTONS (IE-ONLY) document.SlideShow.Previous.disabled = (NextSlide == 0); document.SlideShow.Next.disabled = (NextSlide == (Slides.length-1)); if ((NextSlide >= 0) && (NextSlide < Slides.length)) { document.images['Screen'].src = Slides[NextSlide].src; CurrentSlide = NextSlide++; Message = 'Picture ' + (CurrentSlide+1) + ' of ' + Slides.length; self.defaultStatus = Message; if (Direction == 1) CacheNextSlide(); } return true; } } function Download() { if (Slides[NextSlide].complete) { SlideReady = true; self.defaultStatus = Message; } else setTimeout("Download()", 100); // CHECKS DOWNLOAD STATUS EVERY 100 MS return true; } function CacheNextSlide() { if ((NextSlide < Slides.length) && (typeof Slides[NextSlide] == 'string')) { // ONLY CACHES THE IMAGES ONCE SlideReady = false; self.defaultStatus = 'Downloading next picture...'; Slides[NextSlide] = CacheImage(Slides[NextSlide]); Download(); } return true; } function StartSlideShow() { CurrentSlide = -1; Slides[0] = CacheImage(Slides[0]); SlideReady = true; RotateSlides(); }
|
|
AzDogArt.com Pet Photography Custom & Personalized Gifts & Apparel Contact me today for an appointment!
|
| Home | What is Dog Art? | Pricing | About the Artist | Blog | Dog Links and Rescues | Custom and Personalized Ordering Center |
|
Shop by Breed |
Design Sampler |
|
|
Boxer - New Boxer Design! Dachshund - New Dachshund Art! Dalmatian - New Dalmatian Design! Greyhound - New Greyhounds! Pit bull Terrier 1 - New Pitbull Art!
Custom Memorials Rainbow Bridge or Photo with "In Loving Memory" and Dates
|
|
Copyright © 2008 Andrea Trotter. All rights reserved.