博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年10月11日

摘要: 废话少说,直接贴代码!有注释!functioninitialize() { addcloud();//为页面添加遮罩 document.onreadystatechange = subSomething;//监听加载状态改变}functionaddcloud() {varbodyWidth = document.documentElement.clientWidth;varbodyHeight = Math.max(document.documentElement.clientHeight, document.body.scrollHeight);varbgObj = document.cre 阅读全文

posted @ 2012-10-11 09:31 allon6318 阅读(1806) 评论(2) 推荐(1) 编辑

摘要: 关于JS控制代码暂停的工作总结方法一:这是在网上找的一个方法,可以用。但说实话,这个方法我不怎么明白。。。写得好复杂。这样做跟setTimeout能有多大区别? functionPause(obj, iMinSecond) {if(window.eventList ==null) window.eventList =newArray();varind = -1;for(vari = 0; i < window.eventList.length; i++) {if(window.eventList[i] ==null) { window.eventList[i] = obj; ind = 阅读全文

posted @ 2012-10-11 09:18 allon6318 阅读(1186) 评论(1) 推荐(0) 编辑