SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: window resize?

Hybrid View

  1. #1
    SitePoint Zealot
    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>
    the problem is with setting the window.innerHeight and window.innerWidth.

  2. #2
    ♪♪ ♪ ♪ ♪ ♪♪ ♪ ♪♪ Markdidj's Avatar
    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 useful
    LiveScript: Putting the "Live" Back into JavaScript
    if live output_as_javascript else output_as_html end if

  3. #3
    ♪♪ ♪ ♪ ♪ ♪♪ ♪ ♪♪ Markdidj's Avatar
    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 work
    LiveScript: Putting the "Live" Back into JavaScript
    if live output_as_javascript else output_as_html end if

  4. #4
    SitePoint Zealot
    Join Date
    Feb 2002
    Posts
    123
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it still might be useful, though. thanks.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •