function unlock(currWin){
with(currWin.document){
ondragstart = onselectstart = onselect = onbeforecopy = oncopy = onpaste = onkeydown = oncontextmenu = onmousedown = onmouseup = function(){return true};
var all = getElementsByTagName('*');
for ( var i = 0 ; i < all.length ; i++){
var win = all[i].contentWindow;//若win不为undefined,则all[i]为iframe
if(win)
try{
win.document;//跨域会出错
arguments.callee(win)
}catch(e){
console.log("跨域咯")
}
with(all[i]){
ondragstart = onselectstart = onselect = onbeforecopy = oncopy = onpaste = onkeydown = oncontextmenu = onmousedown = onmouseup = function(){return true};all[i].style.cursor="auto"
}
}
}
}
unlock(this)
Chrome测试通过 。。
确实不错,眼前一亮的好文
为什么都是英文呢?
可以直接使用吗
http://www.38hzt.com
码农大侠…问下.你的time时钟插件叫什么名字啊???
直接抱我的保存下来就是