如果我将href链接更改为:
,编码效果很好javascript:displaylightbox('http://google.com',{})
然后它在firefox中不起作用。所以我是通过课程来完成的...它根本不起作用。任何帮助将不胜感激!
<html>
<head>
<script type="text/javascript" src="include/portal/jquery-1.9.1.min.js"></script>
<link rel="stylesheet" href="include/portal/fancybox/source/jquery.fancybox.css?v=2.1.5" type="text/css" media="screen" />
<script type="text/javascript" src="include/portal/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
<script type="text/javascript" src="include/portal/fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$("a.fancybox").fancybox();
});
</script>
</head>
<body>
<a class="fancybox" rel="group" href="http://google.com" >google</a>
</body>
<html>