在测试页面(http://www.thepartysource.com/index_test.php)上,我正在尝试合并shadowbox。我之前已成功将其合并到另一个站点,并且我正在做同样的事情......我不是为什么在这种情况下我收到错误消息“Shadowbox未定义”,它正在调用Shadowbox.init()。< / p>
如果你进入网页并查看源代码,你可以点击shadowbox的css和js文件的链接,所以我知道它至少看到了这些文件。我也试过移动这些调用(重新排序脚本标签),看看是否有其他脚本破坏它。但无论我把阴影框选项卡放在哪里,它总会给我同样的错误。我已经包括了本文件的全部负责人。提前谢谢。
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The Party Source - Everything but the Guests!</title>
<meta name="description" content="The Party Source, Bellevue, KY, Everything But The Guests.">
<meta name="keywords" content="beer,wine,spirits,party,source,party supplies,cigars,specialty foods,party source,partysource,eq,classes,microbrews,imports,liquor,liqueur,premium cigars,discount cigars,cigar accessories,gourmet food,ballons, cooking classes,wine tasting">
<link media="all" rel="stylesheet" type="text/css" href="css/all-2.css" />
<!--[if lt IE 8]><link rel="stylesheet" type="text/css" href="css/ie.css" /><![endif]-->
<link media="all" rel="stylesheet" type="text/css" href="express/css/typography.css" />
<script type="text/javascript" src="javascripts/jquery.js"></script>
<script type="text/javascript" src="javascripts/ie-hover-ns-pack.js"></script>
<script type="text/javascript" src="javascripts/tabs.js"></script>
<script type="text/javascript" src="javascripts/clear-default-text.js"></script>
<script type="text/javascript" src="javascripts/ccPopUp.js"></script>
<script type="text/javascript" src="javascripts/jquery.main.js"></script>
<link media="all" rel="stylesheet" type="text/css" href="includes/shadowbox/shadowbox.css" />
<script type="text/javascript" href="includes/shadowbox/shadowbox.js"></script>
<script type="text/javascript">
$(document).ready(function(){
Shadowbox.init({
handleOversize: "drag",
modal: true
});
});
</script>
<script type="text/javascript" src="javascripts/dropSearch.js"></script>
</head>
修改
我刚刚意识到当我将dropSearch.js脚本标记移动到shadowbox.js脚本标记下方时,删除搜索停止了工作。我不得不把它移到它上面才能使用它。我将重新下载shadowbox,看看是否有帮助...
RE-修改
不,这显然不是问题。
CLOSED
我放弃了。我认为其他脚本中只有一些东西会破坏它,并且不相信任何人都可以回答这个问题。不管怎样,谢谢。