如果这是一个愚蠢的问题,我对所有这一切都很抱歉。
我之前为我的联系表单创建了一个灯箱效果,并且效果很好。单击联系人,灯箱弹出,其中包含单独的 html 页面中的联系人表单。脚本参考如下:
<link rel="stylesheet" type="text/css" href="css/lightview.css" />
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/prototype/1.6.1/prototype.js'></script>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.2/scriptaculous.js'></script>
<script type='text/javascript' src='js/lightview.js'></script>
然后,我通过教程添加了一个类似 coda 的滑块框,然后将以下脚本添加到头部,一切正常:
<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="js/jquery.scrollTo-1.4.2-min.js" type="text/javascript"></script>
<script src="js/jquery.localscroll-1.2.7-min.js" type="text/javascript"></script>
<script src="js/jquery.serialScroll-1.2.2-min.js" type="text/javascript"></script>
<script src="js/coda-slider.js" type="text/javascript" charset="utf-8"></script>
完成后,我发现我的初始灯箱功能停止工作,链接现在只是将我发送到 html 页面。没有灯箱。现在是完整的头部:
<title>index</title>
<link rel="stylesheet" href="css/style.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/lightview.css" />
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/prototype/1.6.1/prototype.js'></script>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.2/scriptaculous.js'></script>
<script type='text/javascript' src='js/lightview.js'></script>
<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="js/jquery.scrollTo-1.4.2-min.js" type="text/javascript"></script>
<script src="js/jquery.localscroll-1.2.7-min.js" type="text/javascript"></script>
<script src="js/jquery.serialScroll-1.2.2-min.js" type="text/javascript"></script>
<script src="js/coda-slider.js" type="text/javascript" charset="utf-8"></script>
这是我发送到灯箱的导航:
<a href="index.html">Overview</a> |
<a href="index.html">Client List</a> |
<a href="index.html">Reviews</a> |
<a href="index.html">News</a> |
<a href='hiddenforms/candidateform.html' class='lightview' title=" :: :: topclose: true, autosize: true">Candidates</a> |
<a href='hiddenforms/contactform.html' class='lightview' title=" :: :: topclose: true, autosize: true">Contact</a> |
<a href="candidate.html">Share</a>
我希望这会有所帮助。你可以在一个页面上有太多的 javascript 吗?我该如何解决?