木小乐

遮照层效果

想了想,还是发出来吧.虽然面向对象还不是很明白.



还可以把上篇文章的弹出层居中效果的制作和本例一起加个
如下:



主要代码:
copycode:
var Class = {
min_w:960,
bint: function(r) {
$(r).style.display = "block";
$(r).style.height =Math.max(parseInt(document.documentElement.scrollHeight),parseInt(document.documentElement.offsetHeight))+ "px";
$(r).style.width = Math.max(parseInt(document.body.offsetWidth),Class.min_w)+"px";
},
x: function(r,d) {
for (i = 1; i < r; i++) {
var c = document.createElement("div");
c.innerHTML = i;
$(d).appendChild(c);
}
},
res: function(r,wr) {
$(r).style.width = Math.max(parseInt(document.body.offsetWidth),Class.min_w)+"px";
$(r).style.height =Math.max(parseInt(document.documentElement.scrollHeight),parseInt(document.documentElement.offsetHeight))+ "px";
}

};


代码全自己一个弄的.如有错误请大家指正.谢谢!

posted on 2009-09-16 15:00  stri  阅读(142)  评论(0)    收藏  举报

导航