资料
表格
制度
合同
管理
职场
经营
创业
范文
总结
计划
作文
文章
美文
词句
教程
模板
图片
字体
图标
办公
人事
财务
生产
管理资源吧首页
>>>
教程
>>>
编程
>>>
JavaScript教程
>>>
js 设置css的定位
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> new document </title> <meta name="generator" content="editplus" /> <meta name="author" content="" /> <meta name="keywords" content="" /> <meta name="description" content="" /> <img src="/_New/_cj/myeditor/sysimage/space.gif" class="ewebeditor__script" _ewebeditor_fake_tag="script" _ewebeditor_fake_value="%3Cscript%20type%3D%22text%2Fjavascript%22%3E%20%0D%0A%3C!--%20%0D%0Avar%20%24%3Dfunction(id)%7B%20%0D%0Avar%20obj%20%3D%20null%3B%20%0D%0Aif(document.getElementById)%7B%20%0D%0Aobj%20%3D%20document.getElementById(id)%3B%20%0D%0A%7Delse%20if(document.all)%7B%20%0D%0Aobj%20%3D%20document.all%5Bid%5D%3B%20%0D%0A%7D%20%0D%0Areturn%20obj%3B%20%0D%0A%7D%20%0D%0Afunction%20doJ()%7B%20%0D%0Avar%20div%20%3D%20%24('face_bg')%3B%20%0D%0Aif(div)%20%7B%20%0D%0Adiv.parentNode.removeChild(div)%3B%20%0D%0A%7D%20%0D%0Adiv%20%3D%20document.createElement('div')%3B%20%0D%0Adiv.id%20%3D%20'face_bg'%3B%20%0D%0Adiv.style.position%20%3D%20'absolute'%3B%20%0D%0Adiv.style.left%20%3D%20div.style.top%20%3D%20'0px'%3B%20%0D%0Adiv.style.width%20%3D%20'100%25'%3B%20%0D%0Adiv.style.height%20%3D%20document.body.scrollHeight%20%2B%20'px'%3B%20%0D%0Adiv.style.backgroundColor%20%3D%20'%23000'%3B%20%0D%0Adiv.style.zIndex%20%3D%2010000%3B%20%0D%0Adiv.style.display%20%3D%20'none'%3B%20%0D%0Adiv.style.filter%20%3D%20'progid%3ADXImageTransform.Microsoft.Alpha(opacity%3D0%2CfinishOpacity%3D100%2Cstyle%3D0)'%3B%20%0D%0Adiv.style.opacity%20%3D%200%3B%20%0D%0Adiv.onclick%20%3D%20function()%20%7B%20%0D%0Aalert('wokao')%3B%20%0D%0A%7D%20%0D%0A%24('append_parent').appendChild(div)%3B%20%0D%0Adiv.style.display%20%3D%20''%3B%20%0D%0A%7D%20%0D%0A%2F%2F--%3E%20%0D%0A%3C%2Fscript%3E"> </head> <body> <DIV id=append_parent></DIV> <input type="button" value="MMMMMMMMMMMMMMD" onclick="return doJ()" /> <hr /> <hr /> .WOKAO <hr /> </body> </html>
[Ctrl+A 全选 注:
如需引入外部Js需刷新才能执行
]
教程首页
更多教程