定位DIV滚动条
scroll="no" ondblclick="javascript:document.Form1.submit();">
<script type="text/javascript" language="javascript">
<!--
function scrollDiv()
{
document.all.pos.value = document.all.onlinediv.scrollTop;
//onlinediv是一个div
}
function formOnload()
{
OnloadForScroll();
}
function OnloadForScroll()
{
var spos = document.all["pos"].value;
if(! spos)spos=0;
document.all.onlinediv.scrollTop=spos;
}
-->
</script>
<form id="Form1" method="post" runat="server">
//
<asp:textbox id="pos" style="DISPLAY: none" Runat="server"></asp:textbox>
<table>
<tr>
<td>
<div id="onlinediv" onscroll="scrollDiv();" style="overflow: auto; height: 169px;width: 280px">
//ADD (treeview,word,more ....)
</div>
</td>
</tr>
</table>
</form>
*ondblclick="javascript:document.Form1.submit();"---自定义双击事件
*让满屏后,滚动条就处在下面
<script language="javascript">
function test()
{
window.scroll(0,document.body.scrollHeight)
}
</script>
<body onload="test()">
</body>