Fotorama and Shadowbox are not working correctly together

坚强是说给别人听的谎言 提交于 2019-12-14 03:07:43

问题


I have shadowbox operating for all my pictures underneath the fotorama gallery, and it is working great. However, when I click on a button on the fotorama gallery it immediately brings up a shadowbox of an image. It isn't working together properly, and I can't figure out why. Here is the website:

http://ultimatefinishdetailing.com/TiburonPictures.html

Here is the code on the website:

HTML Page Head:

<link rel="stylesheet" type="text/css" href="files/shadowbox/shadowbox.css">
<script type="text/javascript" src="files/shadowbox/shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init({
});
</script>

HTML for the fotorama:

<script>
fotoramaDefaults = {
width: 700,
maxwidth: '100%',
ratio: 16/9,
allowfullscreen: true,
nav: 'thumbs'
}
</script>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<link  href="http://fotorama.s3.amazonaws.com/4.4.9/fotorama.css" rel="stylesheet">
<script src="http://fotorama.s3.amazonaws.com/4.4.9/fotorama.js"></script>
<div class="fotorama">
<img src="images/IMG00242-20110527-17513.jpg">
<img src="images/IMG00248-20110527-17522.jpg">
</div>

回答1:


it was a link issue on one of the shadowbox pictures. I erased one of the html picture links and made a new one. Fixed! If you have the same problem. Erase all picture links to make sure it is actually the link itself. Then, its process of elimination.



来源:https://stackoverflow.com/questions/22109321/fotorama-and-shadowbox-are-not-working-correctly-together

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!