当前位置: 动力学知识库 > 问答 > 编程问答 >

jquery toggle works on index but not on inner pages

问题描述:

Ihave a jquery code like this

jQuery(".pull_feedback").toggle(function(){

jQuery("#feedback").animate({left:"0px"});

return false;

},

function(){

jQuery("#feedback").animate({left:"-362px"});

return false;

});

this works fine on index page but not on the inner pages.Help please!

网友答案:

On the inner page http://pigeontravels.com/contactUs.html# you're getting an error relating to this code:

<script type="text/javascript">
$(function() {
    $('#gallery a').lightBox();
});
</script>

Try changing to:

<script type="text/javascript">
jQuery(function() {
    jQuery('#gallery a').lightBox();
});
</script>

...and see if that works.

分享给朋友:
您可能感兴趣的文章:
随机阅读: