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>
4

2 回答 2

1

看一下fadeslideshow.js 代码本身(http://www.dynamicdrive.com/dynamicindex14/fadeslideshow.js),可以简单地注释掉从第129 行到第132 行的if 块。

于 2013-04-04T09:41:50.007 回答
0

删除此行

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

adeslideshow.js

它会解决你的问题

于 2013-04-04T09:41:13.160 回答