我用的是平湖的风格,在SS首页调用uchome 动态,
升级为2.0后,
首页“随便看看”的滚动 不会循环,滚完就停止了
这个是不是uchome数据调用的问题??
以下是SS7.0下,调用uchome的代码
<DIV class=snscontent_right>
<DIV class=memberdolist>
<H3>看看大家正在做什么...</H3>
<script language="javascript" type="text/javascript" src="http://www.md007.com/home/js.php?id=2"></script>
<SCRIPT>startMarquee(205, 90, 0, "scrollbody");
function startMarquee(h,speed,delay,sid){
var t = null;
var p = false;
var o = document.getElementById(sid);
o.style.height = 205+"px";
o.innerHTML += o.innerHTML;
o.onmouseover = function(){p = true}
o.onmouseout = function(){p = false}
o.scrollTop = 0;
function start(){
t = setInterval(scrolling, speed);
if(!p) {
o.scrollTop += 2;
}
}
function scrolling(){
if(p) return;
if(o.scrollTop % h != 0){
o.scrollTop += 2;
if(o.scrollTop >= o.scrollHeight/2) o.scrollTop = 0;
} else {
clearInterval(t);
setTimeout(start, delay);
}
}
setTimeout(start, delay);
}
</SCRIPT>
</DIV></DIV> |