滚动效果
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<div id="table01" style="width:310px">
<table width="300" border="0" cellspacing="0" cellpadding="0" height=30>
<tr><td height=21> </td></tr>
<tr><td height=21>·<font color=#2E3192 size=2>央行就人民币升值表态 中国汇改不屈服于美压…</font></td></tr>
<tr><td height=21>·<font color=#2E3192 size=2>nba今日之最:太阳队虽败犹荣 约翰逊严重受…</font></td></tr>
<tr><td height=21>·<font color=#2E3192 size=2>房地产新政出台 温州长线炒房客上海坚持捏盘…</font></td></tr>
<tr><td height=21>·<font color=#2E3192 size=2>“花心大少”不枉风流 罗纳尔情场艳事回忆录…</font></td></tr>
<tr><td height=21>·<font color=#2E3192 size=2>全球竞争力排名中国内地下降7位</font></td></tr>
<tr><td height=21>·<font color=#2E3192 size=2>面对人口日益老龄化现象 反思退休制度</font></td></tr>
<tr><td height=21>·<font color=#2E3192 size=2>地产界感叹新政难办 建设部已经考虑房企疑…</font></td></tr>
<tr><td height=21>·<font color=#2E3192 size=2>地产市场风声鹤唳 房产巨头缘何弃沪逆江而上…</font></td></tr>
<tr><td height=21>·<font color=#2E3192 size=2>鄞州医保门诊本月起实时结算</font></td></tr>
<tr><td height=21>·<font color=#2E3192 size=2>热钱导致上海楼市波动加大 将来走向扑朔迷离…</font></td></tr>
<tr><td height=21> </td></tr>
</table>
</div>
<SCRIPT>
marqueetable = document.getElementById('table01');
scrollheight = 63;
stopscroll1 = false;
marqueetable.scrollTop = 0;
with(marqueetable) {
style.width = 300;
style.height = scrollheight;
style.overflowX = "hidden";
style.overflowY = "hidden";
noWrap = true;
onmouseover = new Function("stopscroll1=true");
onmouseout = new Function("stopscroll1=false");
}
startmarqueetop = 0;
offsettop = 0;
marqueestoptime = 0;
function setmarqueetime() {
marqueetable.scrollTop = 0;
setInterval("marqueeup()",10);
}
setmarqueetime();
function marqueeup(){
if(stopscroll1==true) return;
offsettop+=1;
if(offsettop==22) {
marqueestoptime+=1;
offsettop-=1;
if(marqueestoptime==100) {
offsettop=0;
marqueestoptime=0;
}
} else {
startmarqueetop=marqueetable.scrollTop;
marqueetable.scrollTop+=1;
if(startmarqueetop==marqueetable.scrollTop) {
marqueetable.scrollTop=0;
marqueetable.scrollTop+=1;
}
}
}
</SCRIPT>
</BODY>
</HTML>