Home > Web Front-end > JS Tutorial > javascript masking layer effect_javascript skills

javascript masking layer effect_javascript skills

WBOY
Release: 2016-05-16 18:46:25
Original
977 people have browsed it

After thinking about it, I might as well post it. Although I don’t quite understand object-oriented yet.


[Ctrl A Select all Note: If you need to introduce external Js, you need to refresh to execute
]

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
]
Main code: Copy code

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";
} };
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template