blank page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • findach
    Second Lieutenant

    • Jul 2005
    • 143

    blank page

    hiya, can anyone anwser this question?

    on my page www.livepetshop.co.uk/golive.html i have the screen and the product bar actually on the page. some people dont want to actuall watch the show, especialy when its on loop, and just want to use the blog ect.

    so i want to put on a button which says 'watch live now' this will pop over a new blank page with the screen on it.

    however....... i dont want to put my little screen on a big page, so is there anyway to change the size of the page that opens up. also i want people to be able to view and use the other features, at the same time as watching.

    i know you can do this with a pop up, but i dont want to put my screen on a pop up incase its blocked.

    any ideas?
  • Nyoman
    Major

    • Sep 2005
    • 426

    #2
    Re: blank page

    You can use script something like script that you can set the size of new window. I don't know if this is still consider popup.
    something like this and you can adjust by yourself
    Code:
     
    <script type="text/javascript">
    <!--
    function new_window(theurl)
    {
    // set the width and height
    var the_width=[COLOR=magenta]set the width[/COLOR];
    var the_height=[COLOR=magenta]set the height[/COLOR];
    // set window position
    var from_top=[COLOR=magenta]set position[/COLOR];
    var from_left=[COLOR=magenta]set position[/COLOR];
    // set other attributes
    var has_toolbar='no';
    var has_location='no';
    var has_directories='no';
    var has_status='no';
    var has_menubar='no';
    var has_scrollbars='no';
    var is_resizable='no';
     
    // attributes put together
    var the_atts='width='+the_width+',height='+the_height+',top='+from_top+',screenY='+from_top+',left='+from_left+',screenX='+from_left;
    the_atts+=',toolbar='+has_toolbar+',location='+has_location+',directories='+has_directories+',status='+has_status;
    the_atts+=',menubar='+has_menubar+',scrollbars='+has_scrollbars+',resizable='+is_resizable;
    // open window
    window.open(theurl,'',the_atts);
    }
    //-->
    </script>
    .
    .
    Nyoman

    Comment

    • findach
      Second Lieutenant

      • Jul 2005
      • 143

      #3
      Re: blank page

      cheers for that

      Comment

      Working...
      X