我要在也页面中如下这样的代码:
<script type="text/javascript" src="$link.getContextURL()/template/mnurse/js/ghy/jquery-1.4.4.js"></script>
<script type="text/javascript">
$(function(){
$("#img(2)").click(function(){
$("#img(2)").attr("src","$link.getContextURL()/template/mnurse/images/a33.gif")
});
});
</script>
但是它和原有的代码冲突了,一直在报jQuery未定义,下面是原来的代码(网上说是手风琴):
jQuery().ready(function(){
jQuery('#navigation').accordion({
header: '.head',
navigation1: true,
event: 'click',
fillSpace: true,
animated: 'bounceslide'
});
});
请大家帮忙哦
<script type="text/javascript" src="$link.getContextURL()/template/mnurse/js/ghy/jquery-1.4.4.js"></script>
<script type="text/javascript">
$(function(){
$("#img(2)").click(function(){
$("#img(2)").attr("src","$link.getContextURL()/template/mnurse/images/a33.gif")
});
});
</script>
但是它和原有的代码冲突了,一直在报jQuery未定义,下面是原来的代码(网上说是手风琴):
jQuery().ready(function(){
jQuery('#navigation').accordion({
header: '.head',
navigation1: true,
event: 'click',
fillSpace: true,
animated: 'bounceslide'
});
});
请大家帮忙哦
jQuery(document).ready(function(){
});
jQuery('#navigation').accordion({
header: '.head',
navigation1: true,
event: 'click',
fillSpace: true,
animated: 'bounceslide'
});
});