Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: window.resizeto

  1. #1
    New Coder
    Join Date
    Dec 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    window.resizeto

    I want that I had a support of 2 resolutions 1024/768 and 800/600
    but in homesite it shouts error.
    Where there can be a problem? this is my script:
    <script language="JavaScript">
    window.resizeTo(screen.availWidth*0.5,screen.availHeight*0.8)
    </script>
    Thanks for the help

  • #2
    Regular Coder Nischumacher's Avatar
    Join Date
    Oct 2005
    Location
    Bombay, India
    Posts
    196
    Thanks
    0
    Thanked 2 Times in 2 Posts
    the script should work fine...
    more info required...
    could you give us the link to you site ?
    - NS 666
    .net DEVILoper

  • #3
    New Coder
    Join Date
    Dec 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Unfortunately I can not, as it will work intranet, but in any case of thanks. On what to the reason when I do that browse in homesite speaks that something not by way of

  • #4
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    As Nischumacher said, the code is ok, I have tested (even if there was no need ). The error must be otherwise... can we see the code?
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #5
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    Better tp use whole numbers...

    window.resizeTo(Math.floor(screen.availWidth*0.5),Math.floor(screen.availHeight*0.8));

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]


  •  

    Posting Permissions

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