- 记录
- 好友
- 收听
- 听众
- 阅读权限
- 16
- 在线时间
- 小时
- 注册时间
- 2006-10-9
- 最后登录
- 1970-1-1
|
发表于 2010-6-5 23:54:30
|
<style type="text/css">
<!--
.STYLE1 {color: #006400}
-->
</style>
<div id="dps_scroll" onmouseover="dps_scrollstop = 1" onmouseout="dps_scrollstop = 0">
<div id="dps_scrollbody">
<ul id="dps_scrollbodylis">
<li><script charset='utf-8' src='http://api.yy.duowan.com/web_enter/yy.php?id=6187&style=2' type='text/javascript'></script>
</li>
<li>
<script
language="javascript" charset="gb2312" src="http://help.ipark.cn/ispeak.asp?
id=5287&style="></script>
</li>
<li>
<script
language="javascript" charset="gb2312" src="http://help.ipark.cn/ispeak.asp?
id=587&style="></script>
</li>
<li>
<script
language="javascript" charset="gb2312" src="http://help.ipark.cn/ispeak.asp?
id=88888&style="></script>
</li>
</ul>
</div>
</div>
<script type="text/javascript">
var dps_scrolldelay = 3000;
var dps_scrollst = 0;
var dps_scrollstop = 0;
var dps_scrollrowcount = 0;
var dps_scrollcount = 0;
var dps_scrolllis = $('dps_scrollbody').getElementsByTagName("LI");
var dps_scrollrows = new Array();
var dps_scrollstatus;
function dps_scroll_run() {
if($('dps_barbody').style.display == 'none') {
dps_scrollsleep = setTimeout('dps_scroll_run()', dps_scrolldelay);
return;
}
if(dps_scrollstop) {
dps_scrollst = setTimeout('dps_scroll_run()', dps_scrolldelay);
return;
}
if(!dps_scrollst) {
var lasttop = -1;
for(i = 0;i < dps_scrolllis.length;i++) {
if(lasttop != dps_scrolllis[i].offsetTop) {
if(lasttop == -1) {
lasttop = 0;
}
dps_scrollrows[dps_scrollrowcount] = dps_scrolllis[i].offsetTop
- lasttop;
dps_scrollrowcount++;
}
lasttop = dps_scrolllis[i].offsetTop;
}
if(dps_scrollrows.length == 1) {
$('dps_scroll').onmouseover = $('dps_scroll').onmouseout = null;
} else {
dps_scrollrows[dps_scrollrowcount] = dps_scrollrows[1];
$('dps_scrollbodylis').innerHTML += $('dps_scrollbodylis').innerHTML;
dps_scrollst = setTimeout('dps_scroll_run()', dps_scrolldelay);
}
dps_scrollrowcount = 1;
return;
}
if(dps_scrollrowcount >= dps_scrollrows.length) {
$('dps_scrollbody').scrollTop = 0;
dps_scrollrowcount = 1;
dps_scrollst = setTimeout('dps_scroll_run()', dps_scrolldelay);
} else {
dps_scrollcount = 0;
dps_scroll_next(dps_scrollrows[dps_scrollrowcount]);
}
}
function dps_scroll_next(time) {
$('dps_scrollbody').scrollTop++;
dps_scrollcount++;
if(dps_scrollcount != time) {
dps_scrollst = setTimeout('dps_scroll_next(' + time + ')', 10);
} else {
dps_scrollrowcount++;
dps_scrollst = setTimeout('dps_scroll_run()', dps_scrolldelay);
}
}
dps_scroll_run();
</script> |
|