摘要: <script language"javascript"> var currentpos,timer; function initialize() { timer=setInterval("scrollwindow()",10); } function sc(){ clearInterval(timer); } function scrollwindow() { currentpos=document.body.scrollTop; window.scroll(0,++currentpos); if (currentpos != docume 阅读全文
posted @ 2011-12-06 12:46 jamsewang 阅读(437) 评论(0) 推荐(0) 编辑
摘要: 1.document.write(""); 输出语句2.JS中的注释为//3.传统的HTML文档顺序是:document->html->(head,body)4.一个浏览器窗口中的DOM顺序是:window->(navigator,screen,history,location,document)5.得到表单中元素的名称和值:document.getElementById("表单中元素的ID号").name(或value)6.一个小写转大写的JS: document.getElementById("output"). 阅读全文
posted @ 2011-12-06 12:13 jamsewang 阅读(260) 评论(0) 推荐(0) 编辑