我在 fotorama 画廊下面为我的照片操作了 shadowbox,它工作得很好。但是,当我单击 fotorama 画廊上的任何按钮时,它会立即显示图像的阴影框。我不知道为什么当我想要做的只是更改为另一个 fotorama pic 时,它会不断弹出一个 shadowbox 图像。这是确切显示问题所在的网站:
http://ultimatefinishdetailing.com/TiburonPictures.html
这是网站上的代码:
HTML 页面标题:
<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>
fotorama的HTML:
<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>