Server IP : 122.155.17.190 / Your IP : 3.133.100.106 Web Server : Apache/2 System : Linux cat17190.thaihostserver.com 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 User : t1bnc ( 1042) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/t1bnc/domains/t1bnc.ac.th/public_html/slider/js/ |
Upload File : |
/** * @author eduardo22i / http://estampworld.com/ */ var images = ["images/pcnew/images/17_02.png" , "images/pcnew/images/17_02.png" , "images/pcnew/images/17_02.png", "images/pcnew/images/17_02.png" ]; var timing = 3000; var currentImg = 1; function karrotSlider() { var nextimg = (currentImg + 1) > images.length ? 1 : currentImg + 1; var effect = Math.floor (Math.random()*8 +1 ); //effect=1; switch (effect) { case 1: KSDissolve(images[currentImg- 1], images[nextimg- 1]) break; case 2: KSSlideUp(images[currentImg- 1], images[nextimg- 1]) break; case 3: KSSlideDown(images[currentImg- 1], images[nextimg- 1]) break; case 4: KSSlideLeft(images[currentImg- 1], images[nextimg- 1]) break; case 5: KSSlideRight(images[currentImg- 1], images[nextimg- 1]) break; case 6: KSMosaic(images[currentImg- 1], images[nextimg- 1]) break; case 7: KSWindows(images[currentImg- 1], images[nextimg- 1]) break; case 8: KSDo(images[currentImg- 1], images[nextimg- 1]) break; } currentImg = (currentImg + 1) > images.length ? 1 : currentImg + 1; } window.onload = setInterval(function () { karrotSlider() } , timing);