/* Plugin Name: image_cycling The above line makes this file easily editable as a plugin in Wordpress. *** THIS IS NOT A PLUGIN. *** This is javascript code, so don't try to activate it as a plugin! */ /* ------------- Instructions: ------------- * All pictures in this gallery must be 2.5x1 pixels or parts of the web page will bounce around as the pictures cycle. Crop and scale your pictures to make this so. * Update the imgs code below to add/subtract, change the order or timing of pictures being shown in the Gallery web page. * Edit this file directly in "Edit Plugins" or upload this file to wp-content/plugins using FTP. * Reload the Gallery web page in your web browser to check your work. */ (function() { var imgs = new Array(); var imgcnt = 0; var thisimg = 0; /* Note: This first line with "imgs[imgcnt++] =" is skipped on first pass, but used on the following passes. */ imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/DSC00012e_cc.jpg'; /* Skipped on first pass */ /*imgs[imgcnt++] = '../images/pictures_cycling/lisf/home//IMGP2073_S_ESL2013Sep21_cs.jpg';*/ imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/IMGP1020_R_ESL2013Sep22_ccs.jpg'; imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/IMGP2566_S_ESL2013Sep22_ccs.jpg'; imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/IMGP1046_R_ESL2013Sep22_ccs.jpg'; imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/DSC_8468_ccs.JPG'; imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/IMGP1030_R_ESL2013Sep22_ccs.jpg'; imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/IMGP1786c S RES Day Picnic 2013Aug10_ccs.jpg'; imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/DSC_8513_ccfs.JPG'; imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/IMGP8786_cs.jpg'; imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/scaled_IMGP1439_S_ESL_2013jun23_ccs.jpg'; /* Ken */ imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/IMGP1075_R_ESL2013Sep22_ccs.jpg'; imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/IMGP7076a_cs.JPG'; imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/IMGP8820_cs.jpg'; /* ALES */ imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/IMGP7078_ccs.JPG'; /* Pete Nicholson */ imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/136676015_ccs.jpg'; /* Pete Nicholson */ imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/IMGP7169_ccss.jpg'; /* Nelson - with transparency*/ /*imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/IMGP3559_c.JPG';*/ /* Nelson */ imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/IMGP6018ad_ccs.jpg'; /* Nelson */ /*imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/Image16_cs.jpg';*/ /* Electric Launch */ /*imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/IMGP2073_S_ESL2013Sep21_cs.jpg';*/ imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/DSC_8472_ccs.JPG'; imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/IMGP2301_S_ESL2013Sep22_cc.jpg'; imgs[imgcnt++] = '../images/pictures_cycling/lisf/home/IMGP1283c_S_ESL_2013jun22_s_cc.jpg'; function rotate() { if (document.images) { thisimg++; if (thisimg >= imgcnt) thisimg = 0; document.getElementById('image_cycling').src = imgs[thisimg]; } } /* Interval is in milliseconds (1 second = 1000 milliseconds) */ setInterval(rotate,10000); })();