反馈和Facebook代码在某处发生冲突

时间:2012-08-28 23:11:02

标签: jquery forms html facebook-like

我正在创建一个测试页,一切都很顺利,直到我添加popup facebook like box 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>

1 个答案:

答案 0 :(得分:0)

你要包括jQuery库两次,一次是针对cantactable,一次是针对facebook,删除第二个。

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