|
//3-way slideshow- by Suzanne Arnold (http://jandr.com/, suzanne( at )mail.jandr.com)
//Script featured on JavaScript Kit (http://javascriptkit.com)
//Credit must stay intact
var Onerotate_delay = 2000; // delay in milliseconds (5000 = 5 secs)
Onecurrent = 0;
var OneLinks = new Array(5);
OneLinks[0] = "http://www.loadtr.com/2/4/61159c231a5f0b9be3d01188ee965c38.jpg";
OneLinks[1] = "http://www.loadtr.com/2/4/6f11b6ed35e79db0309b57f25b997e843.jpg";
OneLinks[2] = "http://www.loadtr.com/2/4/67bdf4e3abe0bbac57e0cc3e31249b6f5.jpg";
OneLinks[3] = "http://www.loadtr.com/2/4/3ce011886c7df48ba70d78e3f134a3f46.jpg";
OneLinks[4] = "http://www.loadtr.com/2/4/1c73fb116fd5b83f1ab1be83e91976659.jpg";
OneLinks[5] = "http://www.loadtr.com/2/4/dba45af95224c0d805907e69fd30a6a98.jpg";
OneLinks[6] = "http://www.loadtr.com/2/4/c897dbf6008715097cdbbedb3a0715694.jpg";
OneLinks[7] = "http://www.loadtr.com/2/4/e3b33a7b968acd2032d9eb3b972831201.jpg";
OneLinks[8] = "http://www.loadtr.com/2/4/1b16009626331c3abe97b241099b635b2.jpg";
OneLinks[9] = "http://www.loadtr.com/2/4/74da8fc018b4f1b0f67373893a67b081.jpg";
OneLinks[10] = "http://www.loadtr.com/2/4/e48e6380520b625a244a343ba4c776c77.jpg";
OneLinks[11] = "http://www.loadtr.com/2/4/a96a4028089227e5d19e881a21a6c9fe.jpg";
OneLinks[12] = "http://www.loadtr.com/2/4/0853d66424e0240a6d712a726676460c1.jpg";
OneLinks[12] = "http://www.hemensakla.com/yansi/6d6b8j7t6c7qnq13w5png-0.jpg";
OneLinks[12] = "http://www.hemensakla.com/yansi/e69tore_b-0.jpg";
OneLinks[12] = "http://www.hemensakla.com/yansi/372pasaklikiz_yurdumun_insani04-0.jpg";
OneLinks[12] = "http://www.hemensakla.com/yansi/252ustgecit-0.jpg";
OneLinks[12] = "http://www.hemensakla.com/yansi/380babyjpg-0.jpg";
function Onenext() {
if (document.Oneslideform.Oneslide[Onecurrent+1]) {
document.images.Oneshow.src = document.Oneslideform.Oneslide[Onecurrent+1].value;
document.Oneslideform.Oneslide.selectedIndex = ++Onecurrent;
}
else Onefirst();
}
function Oneprevious() {
if (Onecurrent-1 >= 0) {
document.images.Oneshow.src = document.Oneslideform.Oneslide[Onecurrent-1].value;
document.Oneslideform.Oneslide.selectedIndex = --Onecurrent;
}
else Onelast();
}
function Onefirst() {
Onecurrent = 0;
document.images.Oneshow.src = document.Oneslideform.Oneslide[0].value;
document.Oneslideform.Oneslide.selectedIndex = 0;
}
function Onelast() {
Onecurrent = document.Oneslideform.Oneslide.length-1;
document.images.Oneshow.src = document.Oneslideform.Oneslide[Onecurrent].value;
document.Oneslideform.Oneslide.selectedIndex = Onecurrent;
}
function Oneap(text) {
document.Oneslideform.Oneslidebutton.value = (text == "Stop") ? "Start" : "Stop";
Onerotate();
}
function Onechange() {
Onecurrent = document.Oneslideform.Oneslide.selectedIndex;
document.images.Oneshow.src = document.Oneslideform.Oneslide[Onecurrent].value;
}
function Onerotate() {
if (document.Oneslideform.Oneslidebutton.value == "Stop") {
Onecurrent = (Onecurrent == document.Oneslideform.Oneslide.length-1) ? 0 : Onecurrent+1;
document.images.Oneshow.src = document.Oneslideform.Oneslide[Onecurrent].value;
document.Oneslideform.Oneslide.selectedIndex = Onecurrent;
window.setTimeout("Onerotate()", Onerotate_delay);
}
}
function Onetransport(){
window.location=OneLinks[Onecurrent]
}
// End -->
|
|