SFO Archive Forums

SFO Archive Forums (http://nferno666.sytes.net/forums/index.php)
-   General (http://nferno666.sytes.net/forums/forumdisplay.php?f=15)
-   -   Java script (http://nferno666.sytes.net/forums/showthread.php?t=15308)

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.

Quote:

<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" :)


All times are GMT -7. The time now is 05:21 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Resources saved on this page: MySQL 0%

Page generated in 0.06179 seconds with 13 queries