var SlideShowSpeed = 3000; var CrossFadeDuration = 2; var Picture = new Array(); // don't change this var Caption = new Array(); // don't change this var showHot = false; // don't change this Picture.push('http://sildream.cafe24.com/base/img/bn_slider_01.gif'); Picture.push('http://sildream.cafe24.com/base/img/bn_slider_02.gif'); Picture.push('http://sildream.cafe24.com/base/img/bn_slider_03.gif'); var PictureUrl = new Array(); PictureUrl.push('http://sildream.cafe24.com/base/mall/mall1.php?topmenu=p&mode=list&cate_code=CA100003'); PictureUrl.push('http://sildream.cafe24.com/base/mall/mall1.php?topmenu=p&mode=list&cate_code=CA100003'); PictureUrl.push('http://sildream.cafe24.com/base/mall/mall1.php?topmenu=p&mode=list&cate_code=CA100003'); var tss; var iss; var jss = 0; var pss = Picture.length-1; var preLoad = new Array(); for (iss = 0; iss (pss)) jss = 0; if (jss < 0) jss = pss; setPos(jss); } } function setPos(pos) { try { with(document) { if (all) { images.PictureBox.style.cursor = 'pointer'; images.PictureBox.style.filter = 'blendTrans(duration=2)'; images.PictureBox.style.filter = 'blendTrans(duration=CrossFadeDuration)'; images.PictureBox.filters.blendTrans.Apply(); } images.PictureBox.src = preLoad[pos].src; for(var i=0; i'; } else { cig.innerHTML = (i+1); } setEvent(cig, i); } if (all) images.PictureBox.filters.blendTrans.Play(); images.PictureBox.onclick= function() { location = PictureUrl[pos]; } } } catch (e) { alert(e); } } function setEvent(obj, pos) { obj.onclick = function() { imgLoopContext.imgLoopStop(); jss = pos; setPos(pos); imgLoopContext.imgLooping(); } } var setTimer = null; var imgLoopContext = { imgLooping : function() { setTimer = setInterval('control("F")', 5000); }, imgLoopStop : function() { clearInterval(setTimer); } } window.onload = function() { jss = parseInt(Math.random()*100)%Picture.length; setPos(jss); showHot = true; self.focus(); imgLoopContext.imgLooping(); document.images.PictureBox.onmouseover = imgLoopContext.imgLoopStop; document.images.PictureBox.onmouseout = imgLoopContext.imgLooping; }