我以前从未使用过花哨的盒子,除了打开一个带有图像的新窗口之外,我无法让它做任何事情,我希望它使用“弹性”功能在同一页面中打开,这就是我所写的.. .
<head>
<link rel="stylesheet" href="/fancybox/source/jquery.fancybox.css" type="text/css" media="screen" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript" src="/fancybox/source/jquery.fancybox.pack.js"></script>
</head>
<body>
<div class="grid_5" id="images">
<a id="single_image" href="htmlandcss/images/1car.gif"><img src="htmlandcss/images/1car.gif" alt=""/></a>
</div>
</body>
<script type="text/javascript">
$(document).ready(function() {
$("a#single_image").fancybox({
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'overlayShow' : false
});
});
</script>
任何帮助将不胜感激