2011-12-22 63 views
-3

我在我的页面上多次使用fancyBox插件和集成的example7,在Firefox中工作正常,但在ie 6当我点击任何图像以外的第一次它下载图像,而不是弹出。请帮助非常紧急。FancyBox - jQuery的插件

我的代码是

<script type="text/javascript"> 
$(document).ready(function() 
{ 
    $("a#example7").fancybox({ 'titlePosition' : 'inside' }); 
}); 
</script> 

我的HTML是

<a id="example7" href="./example/7_b.jpg" rel="Main Headline One" title="This is test."> 
    <img src="./example/7_s.jpg" /> 
</a> 
+0

发布一些代码迫切如u都得到解决的紧迫,只要你想.. – Exception 2011-12-22 06:59:40

+0

<脚本类型=“文/ JavaScript的” > \t \t $(文件)。就绪(函数(){ \t \t \t $( “一实施例7#”)的fancybox({ \t \t \t \t 'titlePosition' \t: '内部' \t \t \t}); \t \t}); \t Coder 2011-12-22 07:00:42

+0

Sol我已经添加了头脚本,例如我正在使用和多个标签相同。请检查并要求从我的任何其他的东西你需要。非常感谢您的帮助。 – Coder 2011-12-22 07:02:02

回答

0

你加入同一个ID不同的元素,并尝试使用大意是不可用的fancybox。相反,使用类我在这拨弄使用

http://jsfiddle.net/KwyQE/ 

希望它可以帮助

+0

对..感谢所有。 – Coder 2011-12-22 07:29:58