SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Dec 2002
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    is there a way that these to codes can be combined?

    this one..


    <A HREF="main.htm" TARGET="popup" ONCLICK="window.open('main.htm', 'popup', 'width=680,height=475')"><img src="intro.jpg" border="0"></a>




    and this one..


    <script>
    window.onload=doit
    function doit(){
    window.resizeTo(500,500);/* the first number is for width, the second height*/
    window.focus(); //brings window to front
    }
    </script>



    because i want the window to load at a custom size.. but i dont want the control bars or scroll bar or status bar i only want the blue bar at the top with the 'close' 'minimize' and 'restore' buttons on it.. this is what the first code makes the window look like when the link is clicked on an the window pops up.

    so yea is there a way? if so whats the code

    thnx

    Matt

  2. #2
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: is there a way that these to codes can be combined?

    Huh? You saying the code for the first window looks OK? Then just change width and height to 500!?

    Code:
    <A HREF="main.htm" TARGET="popup" ONCLICK="window.open('main.htm', 'popup', 'width=500,height=500')"><img src="intro.jpg" border="0"></a>
    I swear to drunk I'm not God.
    Matt's debating is not a crime
    Hint: Don't buy a stupid dwarf Clicky

  3. #3
    SitePoint Member
    Join Date
    Dec 2002
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Re: is there a way that these to codes can be combined?

    Originally posted by weirdbeardmt
    Huh? You saying the code for the first window looks OK? Then just change width and height to 500!?

    Code:
    <A HREF="main.htm" TARGET="popup" ONCLICK="window.open('main.htm', 'popup', 'width=500,height=500')"><img src="intro.jpg" border="0"></a>
    i want it to look like that window but i dont want to have to click a link to make it look like that window i want it to load like that window.

  4. #4
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You mean when someone first loads your page you want there to be no menubars etc? Not possible. You can resize but you can't alter the browser.
    I swear to drunk I'm not God.
    Matt's debating is not a crime
    Hint: Don't buy a stupid dwarf Clicky


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
  •