在聊天室中,让显示内容栏的滚动条一直在下面。
发表于:2007-07-01来源:作者:点击数:
标签:
SCRIPT LANGUAGE= Java Script1.1 !-- var autoScrollOn = 1;var scrollOnFunction;var scrollOffFunction; function scrollit(){if(!parent.d.document.inputform.as.checked){autoScrollOn=0;return true;}else {autoScrollOn=1;StartUp();return true;}} f
<SCRIPT LANGUAGE="
JavaScript1.1">
<!--
var autoScrollOn = 1;var scrollOnFunction;var scrollOffFunction;
function scrollit(){if(!parent.d.document.inputform.as.checked){autoScrollOn=0;return true;}else {autoScrollOn=1;StartUp();return true;}}
function scrollWindow( ){if ( autoScrollOn == 1 ){this.scroll(0, 65000);setTimeout(@#scrollWindow()@#,200);}}
function scrollOn( ){autoScrollOn = 1;scrollWindow( );}
function scrollOff( ){autoScrollOn = 0;}
function StartUp( ){this.onblur = scrollOnFunction;this.onfocus = scrollOffFunction;scrollWindow( );}
scrollOnFunction = new Function(@#scrollOn( )@#)
scrollOffFunction = new Function(@#scrollOff( )@#)
StartUp();
//--></script>
原文转自:http://www.ltesting.net