PHP gevorderde |
|
function resize() {
this.content= document.getElementById('content');
this.container= document.getElementById('container');
var clientheight = self.innerHeight || (document.documentElement.clientHeight || document.body.clientHeight);
var sheight = document.documentElement.scrollHeight;
container.style.height = parseInt(sheight);
content.style.height = ((sheight > clientheight) ? parseInt(sheight - 169) : parseInt(clientheight - 169))+"px";
}
function DOMLoaded() {
if (arguments.callee.done) return;
if (_timer) clearInterval(_timer);
arguments.callee.done = true;
resize();
if(!document.getElementsByTagName) return;
theObjects = document.getElementsByTagName("object");
for (var i = 0, j=theObjects.length; i < j; i++) theObjects[i].outerHTML = theObjects[i].outerHTML;
}
if (document.addEventListener) document.addEventListener("DOMContentLoaded", DOMLoaded, false);
/*@cc_on @*/
/*@if (@_win32)
document.write("<script id=__ie_onload defer src=javascript:void(0)><\/script>");
var script = document.getElementById("__ie_onload");
script.onreadystatechange = function() {
if (this.readyState == "complete") DOMLoaded();
};
/*@end @*/
if(document.readyState) {
var _timer = setInterval(function(){ if (/loaded|complete/.test(document.readyState)) DOMLoaded();}, 10);
}
window.onload = function() { DOMLoaded(); }
function resize() { this.content= document.getElementById('content'); this.container= document.getElementById('container'); var clientheight = self.innerHeight || (document.documentElement.clientHeight || document.body.clientHeight); var sheight = document.documentElement.scrollHeight; container.style.height = parseInt(sheight); content.style.height = ((sheight > clientheight) ? parseInt(sheight - 169) : parseInt(clientheight - 169))+"px"; } function DOMLoaded() { if (arguments.callee.done) return; if (_timer) clearInterval(_timer); arguments.callee.done = true; resize(); if(!document.getElementsByTagName) return; theObjects = document.getElementsByTagName("object"); for (var i = 0, j=theObjects.length; i < j; i++) theObjects[i].outerHTML = theObjects[i].outerHTML; } if (document.addEventListener) document.addEventListener("DOMContentLoaded", DOMLoaded, false); /*@cc_on @*/ /*@if (@_win32) document.write("<script id=__ie_onload defer src=javascript:void(0)><\/script>"); var script = document.getElementById("__ie_onload"); script.onreadystatechange = function() { if (this.readyState == "complete") DOMLoaded(); }; /*@end @*/ if(document.readyState) { var _timer = setInterval(function(){ if (/loaded|complete/.test(document.readyState)) DOMLoaded();}, 10); } window.onload = function() { DOMLoaded(); }
Style:
http://pastebin.be/9951
Dit geeft van wanneer ik moet scrollen een verkeerd effect in FF. Ik kan wel geen height instellen in mijn style.css want die varieert. |