<style type="text/css">
<!--
#nameList{
width:200 ;
height:220;
overflow-y:auto;
overflow-x:hidden;
vertical-align:top;
scrollbar-face-color: #333;
scrollbar-shadow-color: #999;
scrollbar-mediumlight-color: #333;
scrollbar-track-color: #666;
scrollbar-arrow-color: #7497b9;
scrollbar-base-color :#333;
scrollbar-darkshadow-color:#666;
}
#nameList select{margin:-2px;line-height:14px;}
#nameList select option{line-height:14px;}
-->
</style>
下面是层:
<div id="nameList">
<table>...</table>
</div>
请问怎样可以动态控制该层的scrollbar?
第一次接触到。高手就指点下吧!
<!--
#nameList{
width:200 ;
height:220;
overflow-y:auto;
overflow-x:hidden;
vertical-align:top;
scrollbar-face-color: #333;
scrollbar-shadow-color: #999;
scrollbar-mediumlight-color: #333;
scrollbar-track-color: #666;
scrollbar-arrow-color: #7497b9;
scrollbar-base-color :#333;
scrollbar-darkshadow-color:#666;
}
#nameList select{margin:-2px;line-height:14px;}
#nameList select option{line-height:14px;}
-->
</style>
下面是层:
<div id="nameList">
<table>...</table>
</div>
请问怎样可以动态控制该层的scrollbar?
第一次接触到。高手就指点下吧!
document.getElementById("nameList").scrollLeft=200;