We are constantly trying to improve PHP Freaks and these forums, so feel free to go to the PHPFreaks Comments/Suggestions board and point out anything you'd like to see different!
0 Members and 1 Guest are viewing this topic.
document.getElementById("bg").style.background= "transparent url('svid.png') fixed no-repeat 10px 30px";
document.body.style.background = "#CCC url('svid2.png') fixed no-repeat 10px 30px";
var winW = 630, winH = 460;if (parseInt(navigator.appVersion)>3) { if (navigator.appName=="Netscape") { winW = window.innerWidth; winH = window.innerHeight; } if (navigator.appName.indexOf("Microsoft")!=-1) { winW = document.body.offsetWidth; winH = document.body.offsetHeight; }}if(winW > 1270) { document.body.style.background = "#CCC url('svid2.png') fixed no-repeat 10px 30px"; document.getElementById("bg").style.background= "transparent url('svid.png') fixed no-repeat 10px 30px";}
document.getElementById("bg").innerHTML='test';
<script js>document.getElementById("bg").setAttribute("class", "myClass");</script><style>.myClass{background: transparent url('svid.png') fixed no-repeat 10px 30px;}</style>
uncaught exception: [Exception... "Not enough arguments" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: http://svidler.net/ :: <TOP_LEVEL> :: line 17" data: no]http://svidler.net/Line 76
document.getElementById("bg") is nullhttp://svidler.net/Line 76