2013-04-04 163 views
0

我有旋轉圖像使用JavaScript。我遇到的問題是當光標懸停在圖像頂部時,它會暫停。停止旋轉圖像暫停時懸停在其上

我該如何阻止這種情況發生?

原始代碼:http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

感謝

<script type="text/javascript"> 

var mygallery=new fadeSlideShow({ 
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow 
dimensions: [900, 600], //width/height of gallery in pixels. Should reflect dimensions of largest image 
imagearray: [ 
    ["01.jpg"], 
    ["02.jpg"], 
    ["03.jpg"], 
    ["04.jpg"], 
    ["05.jpg"], 
    ["06.jpg"], 
    ["07.jpg"], 
    ["08.jpg"], 
    ["09.jpg"], 
    ["10.jpg"], 
    ["11.jpg"] 
], 
displaymode: {type:'auto', pause:7500, cycles:0, wraparound:false}, 
persist: false, //remember last viewed slide and recall within same session? 
fadeduration: 400, //transition duration (milliseconds) 
descreveal: "none", 
togglerid: "" 
}) 
</script> 

和...

<div id="fadeshow1"></div> 

回答

0

adeslideshow.js刪除此行

setting.$wrapperdiv.bind('mouseenter', function(){setting.ismouseover=true}) //pause slideshow mouseover 

這將解決您的問題