滚iframe

<SCRIPT>

function movstar(a,time)
{
    
    movx
=setInterval("mov("+a+")",10)
    
}



function movover()
{
    
    clearInterval(movx)
    
}



function mov(a)
{
    
    scrollx
=new_date.document.body.scrollLeft
    
    scrolly
=new_date.document.body.scrollTop
    
    scrolly
=scrolly+a
    
    new_date.window.scroll(scrollx,scrolly)
    
}



</SCRIPT>
<IFRAME border=0 name=new_date src="aaa.htm" width=395 scrolling=no height=350 vspale="0"> </IFRAME>
<IMG 
    
onmouseup=movover();movstar(-1,20)
    
onmousedown=movover();movstar(-3,2)
    
onmouseover=movstar(-1,20);
    
onmouseout=movover(); 
    
height=17 
    
src="scr_up.gif" 
    width
=17> 
<IMG 
    
onmouseup=movover();movstar(1,20) 
    
onmousedown=movover();movstar(3,2) 
    
onmouseover=movstar(1,20); 
    
onmouseout=movover(); 
    
height=17 
    
src="scr_down.gif" 
    width
=17>


滚DIV
<!--DWLayoutTable--> 
<div id="scrolldiv" style="BORDER:0px;PADDING:0px;MARGIN:0px;OVERFLOW:auto;WIDTH:118px;HEIGHT:311px">     
    
<href="#">北京  </a><br/>
    
<href="#">上海  </a><br/>
    
<href="#">广东  </a><br/>
    
<href="#">天津  </a><br/>
    
<href="#">湖北  </a><br/>
    
<href="#">陕西  </a><br/>
    
<href="#">四川  </a><br/>
    
<href="#">辽宁  </a><br/>
    
<href="#">吉林  </a><br/>
    
<href="#">江苏  </a><br/>
    
<href="#">山东  </a><br/>
    
<href="#">浙江  </a><br/>
    
<href="#">广西  </a><br/>
    
<href="#">安徽  </a><br/>
    
<href="#">河北  </a><br/>
    
<href="#">山西  </a><br/>
    
<href="#">内蒙古</a><br/>
    
<href="#">黑龙江</a><br/>
    
<href="#">福建  </a><br/>
    
<href="#">江西  </a><br/>
    
<href="#">河南  </a><br/>
    
<href="#">湖南  </a><br/>
    
<href="#">海南  </a><br/>
    
<href="#">重庆  </a><br/>
    
<href="#">贵州  </a><br/>
    
<href="#">云南  </a><br/>
    
<href="#">西藏  </a><br/>
    
<href="#">甘肃  </a><br/>
    
<href="#">青海  </a><br/>
    
<href="#">宁夏  </a><br/>
    
<href="#">新疆  </a><br/>
    
<href="#">香港  </a><br/>
    
<href="#">澳门  </a><br/>
    
<href="#">台湾  </a><br/>
    
<href="#">全国  </a><br/>
</div>
<SCRIPT language=javascript> 
var currentpos,timer; 
function initialize() 

    timer
=setInterval("scrollwindow()",10); 
}
 
function sc()

    clearInterval(timer); 
}
 
function scrollwindow() 

    currentpos
=document.all["scrolldiv"].scrollTop; 
    document.all[
"scrolldiv"].scrollTop = ++currentpos; 
    
if (currentpos != document.all["scrolldiv"].scrollTop) 
    sc(); 
}
 
document.all[
"scrolldiv"].onmousedown=sc 
document.all[
"scrolldiv"].ondblclick=initialize 
</SCRIPT> 


posted on 2008-05-09 12:09  WilliamsQi  阅读(490)  评论(0编辑  收藏  举报



CoolCha 库查搜索
查手机号码归属地
查IP地址、火车车次、邮编、在线翻译... 淘星助手