function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i
function sel(url){ var sel = $("input[name=sel]").val(); if(sel==""){ return false; } var url1=encodeURIComponent(url+"_s"+sel+".html"); window.location.href=/url1;/index.html }
// Create an array of images that you'd like to use var images = [ "/images/201508271524505392pic1.jpg" ,"/images/201508271531212981pic1.jpg" ,"/images/201508280839567003pic1.jpg" ]; // A little script for preloading all of the images // It's not necessary, but generally a good idea $(images).each(function(){ $('')[0].src = this; }); // The index variable will keep track of which image is currently showing var index = 0; // Call backstretch for the first time, // In this case, I'm settings speed of 500ms for a fadeIn effect between images. $.backstretch(images[index], {speed: 800}); // Set an interval that increments the index and sets the new image // Note: The fadeIn speed set above will be inherited setInterval(function() { index = (index >= images.length - 1) ? 0 : index + 1; $.backstretch(images[index]); }, 5000);