View Full Version : window resize
hairynugs6382
08-30-2002, 10:53 PM
Hello,
Can anyone help me out I was wondering how to go about
keeping the user from resizing a window any ideas would be nice
Thanks
Stupid should hurt
Nightfire
08-30-2002, 11:13 PM
Can only do that on a window you have opened (created) on your site
joh6nn
08-31-2002, 12:58 AM
window.noResize = function(x,y,delay) {
return setInterval('self.resizeTo(' + x + ', ' + y + ');', delay);
}
window.noResize(500, 500, 250);
this resizes to 500 x 500, and keeps it that size. the window can't even be maximized. this works not by preventing the window from resizing, but rather by constantly resizing it. every 250 milliseconds ( this is the third and final variable, and can be changed, if you want to ) the window is resized to the dimensions you provided.
Neat Little Script! How could you modify this to turn off the scroll bars?
joh6nn
09-01-2002, 09:50 PM
to turn of scrollbars, you have to use CSS:
<style>
body {
overflow: hidden;
}
</style>
Thanks again! I was close, but you nailed it for me.
wontgetlost
09-03-2002, 01:25 AM
Originally posted by joh6nn
to turn of scrollbars, you have to use CSS:
<style>
body {
overflow: hidden;
}
</style>
Now THAT is a great feature!!
I've been doing pages a long time but never knew about this.
I've always wondered how to get rid of that darn scroll bar ;)
Thanks for posting it.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.