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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2003
    Location
    Salzburg/Austria
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow How can i control the window size of my homepage



    I have a start page where you have to click ENTER...and then i wanna have a new window with a certain size, that cannot be changed anymore of the visitor...

    Do i need a javascript, or can i solve this problem easier?



    thx

    Tom

    PHYSIOPOWER

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    676
    Thanks
    1
    Thanked 0 Times in 0 Posts
    c2k...
    /me just a thinks® that ya have to do it with javascript...
    n' /me has this just a copied/pasted/credited/saved® from bwuk...

    Hi, try this code in between your <head> and </head> tags:

    <SCRIPT LANGUAGE="JavaScript">
    <!-- ;

    function popwin(x, y)
    {
    window.open(x,y,'status=no,scrollbars=no,resizable=no,toolbars=no,width=450,height=200');
    }

    // end hide -->
    </SCRIPT>

    then when you want to open the window use this:

    <a href="javascript:popwin('yourpage.htm')">blah blah blah</a>

    In the script, just change your heights and widths to whatever you want. Also, changing
    status to yes, and scrolling etc, you can determine if the user is going to be able to resize
    the window, if the user will have scroll bars, and if the user will have toolbars.

    just a goodluck® n' hoping it helps ya...:O)))


  •  

    Posting Permissions

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