Closed Thread Icon

Preserved Topic: Window Resizing Reconfiguring (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18227" title="Pages that link to Preserved Topic: Window Resizing Reconfiguring (Page 1 of 1)" rel="nofollow" >Preserved Topic: Window Resizing Reconfiguring <span class="small">(Page 1 of 1)</span>\

 
YOUREanHTML
Nervous Wreck (II) Inmate

From: Pa, US
Insane since: Aug 2001

posted posted 08-06-2001 10:04

Basically, I want to re-adjust some things when the user resizes the browser window. The only way I can think of is using the <body onResize=""> setup, but it only seems to accept the command "history.go(0)". So then, is there any way I can run a function or set of commands when the window is resized?

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 08-06-2001 11:03
code:
<head>
<title>test</title>
<script language="JavaScript">
<!--
function fnc1()
{
alert('hey');
}
//-->
</script>
</head>
<body onresize="fnc1()">
aa
</body>



this works fine! with a function...dunno maybe you can show us some code.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 08-06-2001 18:24

Just a small note - ONRESIZE event doesn't work in Opera...

YOUREanHTML
Nervous Wreck (II) Inmate

From: Pa, US
Insane since: Aug 2001

posted posted 08-06-2001 20:39

Thanks.. my code was basically like this:

...
<head>
<script language="JavaScript" src="nwload.js"></script>
</head>

<body ... onResize="fn()">
...
</body>
...


fn() was in the javascript file I loaded in the <head> tag, but I put the function out of t and put it separately in its own <script> tag and it worked.


« BackwardsOnwards »

Show Forum Drop Down Menu