if(SearchResultfoNum>0){
getShopSeriesInfo(SearchResultfoNum);
}
var groupcount=1;
if(SearchResultfoNum%4==0){
groupcount=SearchResultfoNum/4;
}else{
groupcount=Math.floor(SearchResultfoNum/4)+1;
}
var marqueetable = document.getElementById("zh0121");
scrollheight=240; //滚动高度
scrollline=groupcount; //滚动内容的行数
scrolltimeout = 1; //滚动刷新的时间(毫秒) //滚动停留时检测的次数,
scrollstoptimes = 100; //scrollstoptimes*scrolltimeout为实际的停留时间
/*初始化滚动设置(无需修改)*/
marqueetable.scrollTop=0;
stopscroll1=false;
startmarqueetop=0;
offsettop=scrollheight;
marqueestoptime=0;
marqueetable.innerHTML+=marqueetable.innerHTML;
with(marqueetable){
//style.width=680+"px"; 宽度
style.height=scrollheight+"px";
style.overflowX="hidden";
style.overflowY="hidden";
noWrap=false;
onmouseover=new Function("stopscroll1=true");
onmouseout=new Function("stopscroll1=false");
}
function setmarqueetime()
{
marqueetable.scrollTop=0;
setInterval("marqueeup()",scrolltimeout);//设置滚动的时间
}
function marqueeup(){
if(stopscroll1==true) return;
offsettop++;
if(offsettop==scrollheight+1)
{
marqueestoptime++;
offsettop--;
if(marqueestoptime==scrollstoptimes)//停留的时间
{
offsettop=0;
marqueestoptime=0;
}
}
else
{
startmarqueetop=marqueetable.scrollTop;
marqueetable.scrollTop++;
if(startmarqueetop==marqueetable.scrollTop)
{
marqueetable.scrollTop=scrollheight*(scrollline-1);
marqueetable.scrollTop++;
}
}
}
if(SearchResultfoNum>0){
setmarqueetime();
}