var whiteOnWhite = function () { this.color = "fff"; this.offset = 100; this.howLong = window.innerWidth; this.howHi = window.innerHeight; this.wowdiv;
this.drawWOW = function() { wowdiv = document.createElement("div"); setWOW(); document.body.appendChild(wowdiv); }; var setWOW = function() { wowdiv.id = "wowdiv"; wowdiv.style["margin-top"] = this.offset+"px"; wowdiv.style["margin-left"] = this.offset+"px"; wowdiv.style.width = this.howLong-(this.offset*2)+"px"; wowdiv.style.height = this.howHi-(this.offset*2)+"px"; wowdiv.style["background-color"] = "#ffc"; wowdiv.style.transform = "rotate(3deg)"; }.bind(this); };
_______________________________________________ NetBehaviour mailing list NetBehaviour@netbehaviour.org http://www.netbehaviour.org/mailman/listinfo/netbehaviour