/* Plugin Name: image_cycling_td 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 or change the order 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; imgs[imgcnt++] = '../../images/pictures_cycling/lisf/wwf_thermal_duration/scaled_fh020033.jpg'; /* Skipped on first pass */ imgs[imgcnt++] = '../../images/pictures_cycling/lisf/wwf_thermal_duration/IMGP3097_S_day2_2011-06-26_by_Rudi_O_c.jpg'; imgs[imgcnt++] = '../../images/pictures_cycling/lisf/wwf_thermal_duration/IMGP6622_2011-06-26_by_Rudi_O_c.jpg'; imgs[imgcnt++] = '../../images/pictures_cycling/lisf/wwf_thermal_duration/IMGP6634_2011-06-26_by_Rudi_O_c.jpg'; imgs[imgcnt++] = '../../images/pictures_cycling/lisf/wwf_thermal_duration/IMGP6639_2011-06-26_by_Rudi_O_c.jpg'; imgs[imgcnt++] = '../../images/pictures_cycling/lisf/wwf_thermal_duration/IMGP6649_2011-06-26_by_Rudi_O_c.jpg'; imgs[imgcnt++] = '../../images/pictures_cycling/lisf/wwf_thermal_duration/IMGP6676_2011-06-26_by_Rudi_O_c.jpg'; imgs[imgcnt++] = '../../images/pictures_cycling/lisf/wwf_thermal_duration/IMGP6709_2011-06-26_by_Rudi_O_c.jpg'; imgs[imgcnt++] = '../../images/pictures_cycling/lisf/wwf_thermal_duration/IMGP6718_2011-06-26_by_Rudi_O_c.jpg'; imgs[imgcnt++] = '../../images/pictures_cycling/lisf/wwf_thermal_duration/IMGP6724_2011-06-26_by_Rudi_O_c.jpg'; imgs[imgcnt++] = '../../images/pictures_cycling/lisf/wwf_thermal_duration/IMGP6727_2011-06-26_by_Rudi_O_c.jpg'; imgs[imgcnt++] = '../../images/pictures_cycling/lisf/wwf_thermal_duration/IMGP6731_2011-06-26_by_Rudi_O_c.jpg'; imgs[imgcnt++] = '../../images/pictures_cycling/lisf/wwf_thermal_duration/IMGP6733_2011-06-26_by_Rudi_O_c.jpg'; imgs[imgcnt++] = '../../images/pictures_cycling/lisf/wwf_thermal_duration/IMGP6737_2011-06-26_by_Rudi_O_c.jpg'; /* imgs[imgcnt++] = './cycling/radian_launch_20120204_c.png'; */ function rotate() { if (document.images) { thisimg++; if (thisimg >= imgcnt) thisimg = 0; document.getElementById('image_cycling_td1').src = imgs[thisimg]; } } setInterval(rotate,5000); })();