http://www.xiaobenxiong.net/network.php
请大家浏览一下这个网站
我现在的问题是
在首页和视频两个字的下面
当鼠标移到积分商城上,然后在移动到少儿视频上左边的大图是跟着轮换的,但是在移动的同时在最新图书的下边
一直向左滚动的图片就会停顿一下,然后继续滚动
在谷歌和火狐浏览器下好使,但是在ie6,ie7下不好使
不知道是为什么
请大家浏览一下这个网站
我现在的问题是
在首页和视频两个字的下面
当鼠标移到积分商城上,然后在移动到少儿视频上左边的大图是跟着轮换的,但是在移动的同时在最新图书的下边
一直向左滚动的图片就会停顿一下,然后继续滚动
在谷歌和火狐浏览器下好使,但是在ie6,ie7下不好使
不知道是为什么
上代码看看吧。
jq(".mune_thumb ul li:first").addClass('active');
jq(".mune_thumb ul li").mouseover(function(){
var imgTitle = jq(this).find('img:first').attr("src"); //Get Main Image URL
var qiZhe_Id = jq(this).find('a').attr("id");
var myBan=jq("#ban");
var qiZhe_Href = myBan.attr("href");
myBan.removeAttr("href");
//大图的链接
if(qiZhe_Id==1){
myBan.attr("href","giftshop.php?action=all");
}else if(qiZhe_Id==2){
myBan.attr("href","shipin.php");
}else if(qiZhe_Id==3){
myBan.attr("href","space.php?do=event&id=22");
}else{
myBan.attr("href","langsong.php?action=mp3list&&lid=f2f08149ef300551067c4a4e45dcb00eMTAy");
}
if (jq(this).is(".active")) { //If it's already active, then...
return false; // Don't click through
} else {
jq(".examples_image img").attr({ src: imgTitle});
jq(".examples_image a").attr({ src: qiZhe_Href});
}
jq(".mune_thumb ul li").removeClass('active'); //Remove class of 'active' on all lists
jq(this).addClass('active'); //add class of 'active' on this list only
return false;
})
});
这是上面图片轮换的代码
var speed=20;
var tab=document.getElementById("cemo");
var tab1=document.getElementById("cemo1");
var tab2=document.getElementById("cemo2");
tab2.innerHTML=tab1.innerHTML;
Marquee();
var MyMar;
function Marquee(){
if(tab2.offsetWidth-tab.scrollLeft<=0)
tab.scrollLeft-=tab1.offsetWidth
else{
tab.scrollLeft++;
}
MyMar=setTimeout(Marquee,speed);
}
tab.onmouseover=function(){clearTimeout(MyMar)};
tab.onmouseout=function(){MyMar=setTimeout(Marquee,speed)};
</script>这是滚动的代码