我有两个jQuery(可以增加),其中一个masterpage和另一个是在contentpage ...首先我添加了contentpage查询(它是一个水平的手风琴菜单),它工作完美,然后我需要第二个一个(让可折叠面板标题位置)的母版...倒是后第二次,他们都没有工作......究竟是什么问题...两个jquery不工作
样本代码
这是第一次加入到在我的内容页面中制作横向手风琴菜单:
<script src="jquery.zaccordion.js" type="text/javascript"></script>
<script src="jquery.easing.1.3.js" type="text/javascript"></script>
<script src="jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="jquery.zaccordion.min.js" type="text/javascript"></script>
/*In MasterPage to Horizontal accordion*/
<script src="http://code.jquery.com/jquery-1.5.js" type="text/javascript">
/*Second query plugin*/
<script type="text/javascript">
$(document).ready(function() {
$("#featured").zAccordion({
width: 600,
height: 260,
tabWidth: 75
});
});
</script>
秒添加的代码来改变根据展开可折叠的面板和崩溃的标题面板的位置..
<script src="http://code.jquery.com/jquery-1.5.js" type="text/javascript">
$(document).ready(function() {
var bodyHeight = $(document).height();
var panelHeight = $('#pnlSearchContent').height(); --CP content panel height
var panelHeightPosition = bodyHeight - panelHeight;
$('#pnlSearchTitle').offset().top = panelHeightPosition; -- CP Title panel final position
});
</script>
你在引用jQuery文件两次吗? – rahul 2011-03-03 12:38:23
你可以发布这两个脚本,让人们可以看到你在做什么? – 2011-03-03 12:38:57
我们不能给你的解决方案,直到你可以给出具体的错误消息和/或代码示例 – JohnP 2011-03-03 12:39:05