SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: window resize?
-
Oct 21, 2002, 11:45 #1
- Join Date
- Feb 2002
- Posts
- 123
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
window resize?
hey, i can get this to work in netscape 7, how do i get it to work in IE?
PHP Code:<script lanuage="javascript">
ogWidth=window.innerWidth;
ogHeight=window.innerHeight;
function resizeIt() {
if (window.innerWidth != <?=$imagewidthBig ?>|| window.innerHeight != <?=$tableHeight ?>) {
window.innerWidth=<?=$imagewidthBig ?>;
window.innerHeight=<?=$tableHeight ?>;
alert(window.innerHeight);
}
}
</script>
-
Oct 21, 2002, 13:06 #2
- Join Date
- Sep 2002
- Location
- Bournemouth, South UK
- Posts
- 1,551
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
i use.....
something like this...
function resizeWin(){if (window.screen) {window.moveTo(0, 0);window.resizeTo(ogWidth, ogHeight)}}
hope its usefulLiveScript: Putting the "Live" Back into JavaScript
if live output_as_javascript else output_as_html end if
-
Oct 21, 2002, 13:10 #3
- Join Date
- Sep 2002
- Location
- Bournemouth, South UK
- Posts
- 1,551
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
sorry, dont think thats is what your looking for
sorry, dont know how to get the window size in IE (yet),
thats just for sizing, and ot ogWidth&ogHeight wont workLiveScript: Putting the "Live" Back into JavaScript
if live output_as_javascript else output_as_html end if
-
Oct 21, 2002, 13:23 #4
- Join Date
- Feb 2002
- Posts
- 123
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
it still might be useful, though. thanks.
Bookmarks