Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/419.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 同一网页中有两个lightbox库:一个正常工作,另一个不正常';T_Javascript_Twitter Bootstrap_Carousel_Lightbox - Fatal编程技术网

Javascript 同一网页中有两个lightbox库:一个正常工作,另一个不正常';T

Javascript 同一网页中有两个lightbox库:一个正常工作,另一个不正常';T,javascript,twitter-bootstrap,carousel,lightbox,Javascript,Twitter Bootstrap,Carousel,Lightbox,我在lightbox中有两个画廊,带有如下旋转木马元素: 第一个脚本: first gallery script ..... sending to html id of gallery 第二个脚本: second gallery script ..... sending to html id of gallery 然后: $(document).ready(function ($) stuff .... 所以,问题在于:当单击“下一步”或“上一步”按钮时,第二个库开始自动移动,就像一直按下

我在lightbox中有两个画廊,带有如下旋转木马元素:

第一个脚本:

first gallery script
.....
sending to html id of gallery
第二个脚本:

second gallery script
.....
sending to html id of gallery
然后:

$(document).ready(function ($) stuff
....

所以,问题在于:当单击“下一步”或“上一步”按钮时,第二个库开始自动移动,就像一直按下一样。我猜是有什么东西使按钮在一定的时间间隔内点击。您对此有何想法?

根据您的问题,我可以判断错误是html“ID”的名称。检查两个库的ID是否不同

如果您的gallery one的ID名称与gallery II相同,则它的行为与您在此处指定的方式特别相似。如果是这样,请更改第二个旋转木马的库名,并在javascript文件中为第二个旋转木马创建js函数。希望这有帮助