把下面的代码copy到txt里面,把txt改成html文件,用ie打开就可以看到效果了。
<HEAD> <SCRIPT> function test(){ document.all.oScrollMe.scrollTop=document.all.oScrollMe.scrollHeight; } </SCRIPT> </HEAD> <BODY onload="test();"> <TEXTAREA ID=oScrollMe CLASS="colorIt" rows="10" cols="40"> This text area scrolls down when the "Click to Scroll the Text Area" button is clicked. The doScroll method scrolls it as if the down arrow component of the scroll bar had been clicked. Double-click the button to scroll down a whole page. mghfjg]nhgfdjghklkjliujgfdjghhfhgfhgf</textarea> </BODY>