Fancybox冲突?

时间:2012-11-12 18:46:27

标签: jquery html fancybox

我正在尝试将Fancybox电子邮件表单实现到网站,但我无法让它在实际网站上运行。

当我在JSFiddle上使用代码时,它工作正常:http://jsfiddle.net/svsdx/

但是,我认为可能与某些代码存在冲突。我试过删除一些元素,但我找不到导致它的原因。毫无疑问,我是一个完全白痴,但是有人能在这里发现一个可能的问题吗?

<head>  

<!--Favicon-->
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> 

<!-- CSS -->
<link rel="stylesheet" href="style.css">
<!-- /CSS -->

<!-- Fonts --> 
<script type="text/javascript" src="//use.typekit.net/hte5kvm.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<!-- /Fonts -->

<!-- Ticker -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script type="text/javascript" src="http://labs.ft.com/wp-content/uploads/2010/03/jquery.ticker.js"></script>
<!-- /Ticker -->

<!-- FancyBox -->   
<link rel="stylesheet" href="fancybox/source/jquery.fancybox.css" type="text/css" media="screen" />
<script type="text/javascript" src="fancybox/source/jquery.fancybox.pack.js"></script>
<link rel="stylesheet" href="fancybox/source/helpers/jquery.fancybox-buttons.css" type="text/css" media="screen" />
<script type="text/javascript" src="fancybox/source/helpers/jquery.fancybox-buttons.js"></script>
<script type="text/javascript" src="fancybox/source/helpers/jquery.fancybox-media.js"></script>
<link rel="stylesheet" href="fancybox/source/helpers/jquery.fancybox-thumbs.css" type="text/css" media="screen" />
<script type="text/javascript" src="fancybox/source/helpers/jquery.fancybox-thumbs.js"></script>
<!-- /FancyBox -->

<!-- JS -->
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<!-- /JS -->

 <!--Analytics-->
 <script type="text/javascript">

   var _gaq = _gaq || [];
   _gaq.push(['_setAccount', 'UA-XXXXXXXX-1']);
   _gaq.push(['_trackPageview']);

   (function() {
     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
   })();

 </script>     

  </head>

提前致谢。

1 个答案:

答案 0 :(得分:0)

尝试删除Typekit脚本链接。如果TypeKit脚本出现问题,请尝试使用其高级嵌入代码:http://help.typekit.com/customer/portal/articles/649336-embed-code