-2

我正在创建一个测试页面,一切都很顺利,直到我添加弹出 facebook 之类的框 facebook 代码与反馈表冲突我尝试了这么多小时来解决这个问题,但我无法看到其中任何一个我希望两者都可见这里的任何错误都是我的代码:

   <div id="contactable"><!-- contactable html placeholder --></div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
<script type="text/javascript" src="http://boysjoys.com/final/scripts/jquery.validate.pack.js"></script>
<script type="text/javascript" src="http://boysjoys.com/final/scripts/jquery.contactable.js"></script>
<link rel="stylesheet" href="http://boysjoys.com/final/css/contactable.css" type="text/css" />
<script>$(function(){$('#contactable').contactable({subject: 'feedback URL:'+location.href});});</script>

<!--end contactable -->

<div> </div>

<!-- FACEBOOK WIDGET START -->
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js'></script>
<script src="https://gj37765.googlecode.com/svn/trunk/html/[www.gj37765.blogspot.com]jquery.colorbox-min.js"></script>
<link rel="stylesheet" href="https://gj37765.googlecode.com/svn/trunk/html/%5Bwww.gj37765.blogspot.com%5Dfbpopup.css" type="text/css" />
<script type="text/javascript">
jQuery(document).ready(function(){
if (document.cookie.indexOf('visited=flase') == -1) {
var fifteenDays = 1000*60*60*24*30;
var expires = new Date((new Date()).valueOf() + fifteenDays);
document.cookie = "visited=true;expires=" + expires.toUTCString();
$.colorbox({width:"400px", inline:true, href:"#mdfb"});
}
});
</script>
<div style="display:none">
<div id='mdfb' style='padding:10px; background:#fff;'>

<center>
<iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2FBoysJoys&amp;width=300&amp;colorscheme=light&amp;show_faces=true&amp;border_color=%23ffffff&amp;stream=false&amp;header=false&amp;height=258" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:300px; height:258px;" allowtransparency="true"></iframe>
</center>
</div>
</div>
4

1 回答 1

0

您将两次包含 jQuery 库,一次用于不可接触,一次用于 facebook,删除第二个。

这是一个工作小提琴http://jsfiddle.net/45yzC/

于 2012-08-28T23:52:59.537 回答