我正在使用第一个灯箱系统。我选择了fancybox。但是,我有一个问题。单击后选择我的画廊的图像,隐藏图像。
这是我的所有代码;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>FancyBox Gallery Test</title>
<link rel="stylesheet" href="inc/css/style.css" />
<link rel="stylesheet" href="inc/js/fancybox/jquery.fancybox.css" />
<link rel="stylesheet" href="inc/js/fancybox/helpers/jquery.fancybox-buttons.css" />
<link rel="stylesheet" href="inc/js/fancybox/helpers/jquery.fancybox-thumbs.css" />
<script type="text/javascript" src="inc/js/jquery.js"></script>
<script type="text/javascript" src="inc/js/jquery.mousewheel.js"></script>
<script type="text/javascript" src="inc/js/fancybox/jquery.fancybox.js"></script>
<script type="text/javascript" src="inc/js/fancybox/helpers/jquery.fancybox-buttons.js"></script>
<script type="text/javascript" src="inc/js/fancybox/helpers/jquery.fancybox-media.js"></script>
<script type="text/javascript" src="inc/js/fancybox/helpers/jquery.fancybox-thumbs.js"></script>
</head>
<body>
<div class="gallery">
<center>
<script type="text/javascript">
$(document).ready(function(){
for(var i = 0;i<9;i++){
$(".gallery li#"+i).fancybox({
padding: 0,
'hideOnContentClick': false,
openEffect : 'elastic',
openSpeed : 150,
closeEffect : 'elastic',
closeSpeed : 150,
closeClick : true,
helpers : {
overlay : null
}
});
}
});
</script>
<ul>
<li id="1"><img src="inc/imj/uye/Mustafa AY/1.jpg" alt="123123123" /></li>
<li id="2"><img src="inc/imj/uye/Mustafa AY/1.jpg" alt="" /></li>
<li id="3"><img src="inc/imj/uye/Mustafa AY/1.jpg" alt="" /></li>
<li id="4"><img src="inc/imj/uye/Mustafa AY/1.jpg" alt="" /></li>
<li id="5"><img src="inc/imj/uye/Mustafa AY/1.jpg" alt="" /></li>
<li id="6"><img src="inc/imj/uye/Mustafa AY/1.jpg" alt="" /></li>
<li id="7"><img src="inc/imj/uye/Mustafa AY/1.jpg" alt="" /></li>
<li id="8"><img src="inc/imj/uye/Mustafa AY/1.jpg" alt="" /></li>
</ul>
</center>
</div>
</body>
</html>
我们如何解决?因为,我看不到错。
感谢您的关注。干得好..