Слайд Шоу (SlideShow) на PHP 😁
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
function StartPartnerSlideshow() { if(endPartnerDiv == "Partner2") { startPartnerDiv = "Partner2"; endPartnerDiv = "Partner3"; setTimeout("GetNextPartner('" + startPartnerDiv + "', '" + endPartnerDiv + "', 10, 0)",partnerspeed); } else if(endPartnerDiv == "Partner3") { startPartnerDiv = "Partner3"; endPartnerDiv = "Partner4"; setTimeout("GetNextPartner('" + startPartnerDiv + "', '" + endPartnerDiv + "', 10, 0)",partnerspeed); } else if(endPartnerDiv == "Partner4") { startPartnerDiv = "Partner4"; endPartnerDiv = "Partner5"; setTimeout("GetNextPartner('" + startPartnerDiv + "', '" + endPartnerDiv + "', 10, 0)",partnerspeed); } else if(endPartnerDiv == "Partner5") { startPartnerDiv = "Partner5"; endPartnerDiv = "Partner6"; setTimeout("GetNextPartner('" + startPartnerDiv + "', '" + endPartnerDiv + "', 10, 0)",partnerspeed); } else if(endPartnerDiv == "Partner6") { startPartnerDiv = "Partner6"; endPartnerDiv = "Partner7"; setTimeout("GetNextPartner('" + startPartnerDiv + "', '" + endPartnerDiv + "', 10, 0)",partnerspeed); } else if (endPartnerDiv == "Partner7") { startPartnerDiv = "Partner7"; endPartnerDiv = "Partner8"; setTimeout("GetNextPartner('" + startPartnerDiv + "', '" + endPartnerDiv + "', 10, 0)", partnerspeed); } else if (endPartnerDiv == "Partner8") { startPartnerDiv = "Partner8"; endPartnerDiv = "Partner9"; setTimeout("GetNextPartner('" + startPartnerDiv + "', '" + endPartnerDiv + "', 10, 0)", partnerspeed); } else if (endPartnerDiv == "Partner9") { startPartnerDiv = "Partner9"; endPartnerDiv = "Partner10"; setTimeout("GetNextPartner('" + startPartnerDiv + "', '" + endPartnerDiv + "', 10, 0)", partnerspeed); } else if (endPartnerDiv == "Partner10") { startPartnerDiv = "Partner10"; endPartnerDiv = "Partner11"; setTimeout("GetNextPartner('" + startPartnerDiv + "', '" + endPartnerDiv + "', 10, 0)", partnerspeed); } else if (endPartnerDiv == "Partner11") { startPartnerDiv = "Partner11"; endPartnerDiv = "Partner1"; setTimeout("GetNextPartner('" + startPartnerDiv + "', '" + endPartnerDiv + "', 10, 0)", partnerspeed); } else { startPartnerDiv = "Partner1"; endPartnerDiv = "Partner2"; setTimeout("GetNextPartner('" + startPartnerDiv + "', '" + endPartnerDiv + "', 10, 0)",partnerspeed); } } |