===================第一个是=====================
<script type="text/javascript">
$(document).ready(function(){
$(".logo a").hover(function(){
$(this).find(".shine").stop();
$(this).find(".shine").css("background-position","-177px 0");
$(this).find(".shine").animate({backgroundPosition: '177px 0'},600);
$(this).find(".title").stop().animate({left:'0px'},{queue:false,duration:450});
},function(){
$(this).find(".title").stop().animate({left:'-160px'},{queue:false,duration:200});
});
});
</script>
==============第2个是===========
<script type="text/javascript">
$(document).ready(function() {
$("#sfloat").scrollFollow({
bottomObj: '.index-w-box',
marginTop: 8,
marginBottom: 0
})
});
</script>
========================
主要是页面中有2个$(document).ready(function() 结果导致只有第2个生效,第一个不生效。谢谢了
<script type="text/javascript">
$(document).ready(function(){
$(".logo a").hover(function(){
$(this).find(".shine").stop();
$(this).find(".shine").css("background-position","-177px 0");
$(this).find(".shine").animate({backgroundPosition: '177px 0'},600);
$(this).find(".title").stop().animate({left:'0px'},{queue:false,duration:450});
},function(){
$(this).find(".title").stop().animate({left:'-160px'},{queue:false,duration:200});
});
});
</script>
==============第2个是===========
<script type="text/javascript">
$(document).ready(function() {
$("#sfloat").scrollFollow({
bottomObj: '.index-w-box',
marginTop: 8,
marginBottom: 0
})
});
</script>
========================
主要是页面中有2个$(document).ready(function() 结果导致只有第2个生效,第一个不生效。谢谢了