Forum Moderators: open
and now the reason for this
I'm creating a web site that is for a friend to display his art.. we have a welcome image that wont look right unless the screen fits it. If i just have the page close and open a new one without a tool bar like a pop up im afraid some peoples popup software would not let the page be veiwable. but anyway else it will take aray from the look of the site.
But otherwise just change the values to the dimensions of the image. :)
<body onload="window.resizeTo(400,500);">
It works in NN7 and IE6 dont know about others.
:)
function getTZWindowWidth() {
var myWidth = 640;
if (document.documentElement && (document.documentElement.clientWidth ¦¦ document.documentElement.clientHeight)) {
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
} else {
if (document.body && (document.body.clientWidth ¦¦ document.body.clientHeight)) {
//IE 4 compatible
myWidth = document.body.clientWidth;
}
}
if (document.layers) { myWidth = window.innerWidth; } // ns4 only
return myWidth;
} // end getTZWindowWidthfunction getTZWindowHeight() {
var myHeight = 480;
if (document.documentElement && (document.documentElement.clientWidth ¦¦ document.documentElement.clientHeight)) {
//IE 6+ in 'standards compliant mode'
myHeight = document.documentElement.clientHeight;
} else {
if (document.body && ( document.body.clientWidth ¦¦ document.body.clientHeight)) {
//IE 4 compatible
myHeight = document.body.clientHeight;
}
}
if (document.layers) { myHeight = window.innerHeight; } // ns4 only
return myHeight;
} // end getTZWindowHeight