Pop up appearing with white border?

Discussion in 'JavaScript' started by Briony, Jul 9, 2007.

  1. #1
    Hi
    I have tried to create a popup window from a code generator online however when I try this out the pop up appears with a large white space around the flash movie. The movie is 215 x 250px and is detailed as this both in the javascript and flash movie code.

    I am not sure why the white border is there, if it is a Javascript or Flash issue - can anyone help?

    Here is my code :

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>

    <SCRIPT LANGUAGE="JavaScript">
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=215,height=250,left = 404.5,top = 259');");
    }
    // End -->
    </script>
    </head>

    <body onLoad="javascript:popUp('walker.html')">
    </body>

    </html>

    Many thanks
    Bri
     
    Briony, Jul 9, 2007 IP
  2. malkassem

    malkassem Peon

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This might be a problem with 'walker.html' and not the call to window.open.

    Try opening the the file by itself and see if you get the same results.
     
    malkassem, Jul 9, 2007 IP
  3. Briony

    Briony Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    When I open the file on it's own the page is okay and flash movie is in the top left hand corner with some top and side border space separating it from the edges. Is there some sort of command that has to be put in to align it to the edges?

    thanks
    Bri
     
    Briony, Jul 9, 2007 IP