首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > CSS >

js兑现的一个CSS过滤器

2012-11-04 
js实现的一个CSS过滤器(function(){window.Mask {version:1.0}var Dnew Function(obj,return docum

js实现的一个CSS过滤器

(function(){window.Mask = {version:1.0};var D=new Function('obj','return document.getElementById(obj);');var oevent=new Function('e','if (!e) e = window.event;return e');Mask.Login = function(){$("mask").style.display = "block";$("mask").style.position = "absolute";$("mask").style.top = "0px";$("mask").style.left = "0px";//$("mask").style.width = "100%";//$("mask").style.height = document.documentElement.clientWidth + "px";//document.body.clientHeight + "px";$("mask").style.width = document.documentElement.scrollWidth + "px";$("mask").style.height = document.documentElement.scrollHeight + "px";//document.body.clientHeight + "px";$("mask").className = "b";$("mask").style.zIndex = "3";$("mask").style.filter = "alpha(opacity=40)";$("mask").style.opacity = "0.4";$("mask").style.backgroundColor = "#000000";}})();

?

?

?

?

页面调用只需要:

Mask.login();即可

?

热点排行