View Full Version : Java script
Character
11-14-2002, 10:03 PM
Does anyone know where I can find a java script for a website that compacts or incompacts the script when the window is either compact or not. It's the one that if you resize your window, the script within the window resizes as well. Please tell me where to find the script, thanx
Squall87
11-15-2002, 07:53 AM
you mean Onresize?
[code:1]OnResize.window Alert ('DON'T RESIZE ME AGIAN! PIG!');[/code:1]
Just to answer your question, the script minimizes when you minmize the window, but it still runs, that way once you repull it back up, it still works. Besides having to rego to the server and grab the javascript.
Character
11-15-2002, 09:22 AM
So what is the code to onresize
Squall87
11-15-2002, 09:34 AM
O_o! you didn't see it in my post!?
It's a DOM.
<script Language="Javascript">
<!--Hide from older browsers
Onresize.Window (script here.)
-->
</script>
then agian, you can just take off the .window and use .document, this is the W3C's ID DOM, so thus, if your trying to make a non-cross browser site, I would use Netscapes Layer (Which sucks) DOM for Netscape and IE's ALL (4.0 and up has it, 5.0 put in the ID DOM, and the ID DOM is now standard in IE, though you can use the ALL) DOM for IE.
Character
11-15-2002, 08:46 PM
Hey thank you so much "Squal87" :)
vBulletin® v3.8.4, Copyright ©2000-2026, Jelsoft Enterprises Ltd.