资料
表格
制度
合同
管理
职场
经营
创业
范文
总结
计划
作文
文章
美文
词句
教程
模板
图片
字体
图标
办公
人事
财务
生产
管理资源吧首页
>>>
教程
>>>
编程
>>>
JavaScript教程
>>>
深入javascript json QQ网页登陆
效果图
<html> <head> <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%3C!--%20%0D%0A%20%20%20%20%20%20%20%20LoginWindow%20%3D%20function(jsonObject)%20%0D%0A%20%20%20%20%20%20%20%20%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20this.width%20%3D%20jsonObject.width%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20this.height%20%3D%20jsonObject.height%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20this.titleColor%20%3D%20jsonObject.titleColor%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20this.backgroundColor%20%3D%20jsonObject.backgroundColor%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20this.LwHeight%20%3D%20(document.body.clientHeight%20-%20this.width)%20%2F%202%3B%20%2F%2F%E8%AE%A9div%E5%9C%A8%E5%B1%8F%E5%B9%95%E7%9A%84%E4%B8%AD%E9%97%B4%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20this.LwWidth%20%3D%20(document.body.clientWidth%20-%20this.height)%20%2F%202%3B%20%2F%2F%E8%AE%A9div%E5%9C%A8%E5%B1%8F%E5%B9%95%E7%9A%84%E4%B8%AD%E9%97%B4%20%0D%0A%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20LoginWindow.prototype%20%3D%20%0D%0A%20%20%20%20%20%20%20%20%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20createLoginBody%3A%20function()%20%2F%2F%E5%88%9B%E5%BB%BA%E7%99%BB%E9%99%86%E6%A1%86%EF%BC%8C%20%E5%8D%B3%E6%95%B4%E4%B8%AA%E6%A1%86%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20loginWindow%20%3D%20document.createElement(%22div%22)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20with(loginWindow.style)%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20border%20%3D%20%221px%20solid%20black%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20position%20%3D%20%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20width%20%3D%20this.width%20%2B%20%22px%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20height%20%3D%20this.height%20%2B%20%22px%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20top%20%3D%20this.LwHeight%20%2B%20%22px%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20left%20%3D%20this.LwWidth%20%2B%20%22px%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20backgroundColor%20%3D%20this.backgroundColor%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20return%20loginWindow%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20createLoginTitle%3Afunction()%20%2F%2F%E5%88%9B%E5%BB%BA%20%E6%A0%87%E9%A2%98%20%E5%8D%B3%E6%95%88%E6%9E%9C%E5%9B%BE%E7%9A%84%E9%BB%91%E8%89%B2%E6%A0%87%E9%A2%98%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20title%20%3D%20document.createElement(%22div%22)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20table%20%3D%20document.createElement(%22table%22)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20tbody%20%3D%20document.createElement(%22tbody%22)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20tr%20%3D%20document.createElement(%22tr%22)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20td_1%20%3D%20document.createElement(%22td%22)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20td_2%20%3D%20document.createElement(%22td%22)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20close%20%3D%20document.createElement(%22a%22)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20close.onclick%20%3D%20function()%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20document.body.removeChild(title.parentNode)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20close.innerHTML%20%3D%20%22X%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20td_1.innerHTML%20%3D%20%22welcome%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20with(title.style)%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20width%20%3D%20%22100%25%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20height%20%3D%20this.height%20%2F%208%20%2B%20%22px%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20backgroundColor%20%3D%20this.titleColor%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20with(table.style)%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20width%20%3D%20%22100%25%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20backgroundColor%20%3D%20this.titleColor%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20color%20%3D%20%22white%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20td_2.style.textAlign%20%3D%20%22right%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20td_2.appendChild(close)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20tr.appendChild(td_1)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20tr.appendChild(td_2)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20tbody.appendChild(tr)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20table.appendChild(tbody)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20title.appendChild(table)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20return%20title%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20loadWindow%20%3A%20function()%20%2F%2F%E7%BB%84%E5%90%88%E7%AA%97%E5%8F%A3%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20loginWindow%20%3D%20this.createLoginBody()%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20title%20%3D%20this.createLoginTitle()%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20loginWindow.appendChild(title)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20document.body.appendChild(loginWindow)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%0D%0A%2F%2F%20--%3E%3C%2Fscript%3E"> </head> <body> <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%3C!--%20%0D%0A%20%20%20%20%20%20%20%20var%20go%20%3D%20new%20LoginWindow(%7Bwidth%20%3A%20%22300%22%2C%20height%20%3A%20%22200%22%2C%20backgroundColor%20%3A%20%22white%22%2C%20titleColor%20%3A%20%22black%22%7D)%3B%20%0D%0A%20%20%20%20%20%20%20%20go.loadWindow()%3B%20%0D%0A%20%20%20%20%20%0D%0A%2F%2F%20--%3E%3C%2Fscript%3E"> </body> </html>
[Ctrl+A 全选 注:
如需引入外部Js需刷新才能执行
]
教程首页
更多教程