我有使用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 :(得分:1)
看看fadeslideshow.js代码本身(http://www.dynamicdrive.com/dynamicindex14/fadeslideshow.js),第129行到第132行的if块可以简单地注释掉。
答案 1 :(得分:0)
删除此行
setting.$wrapperdiv.bind('mouseenter', function(){setting.ismouseover=true}) //pause slideshow mouseover
来自adeslideshow.js
它将解决您的问题