After thinking about it, I might as well post it. Although I don’t quite understand object-oriented yet.
]
You can also add the previous article To create the pop-up layer centering effect, add
[Ctrl A Select all Note:
If you need to introduce external Js, you need to refresh to execute
]
The code is as follows:
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";
} };
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn