Advanced Search

Results 1 to 2 of 2

Thread: problem with pop-up code

  1. #1
    Join Date
    Aug 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default problem with pop-up code

    http://home.iprimus.com.au/theteam/funny.html

    click testimonials, the popup does comeup but it also brings a page with a url that looks very much like the code behind it.
    whats with that? how can i fix this extra window opening over the top of the flash?
    it says,[object Window] on it.
    the code i am using is

    Code:
    on(release) {
    	getURL("javascript:window.open('http://home.iprimus.com.au/theteam/enterhome.htm', 'RayWhitePopup', 'height=550,width=500,toolbar=no,scrollbars=no')");
    }


    so how can i make it just the pop up,not that extra window?


    -munch

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,486
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Your missing your JS code in the <head> section of you HTML page.

    Add this:

    Code:
    <script language="JavaScript">
    function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
    </script>
    in-between the <head> and </head> tags of your HTML page.

    Second and most glaringly is you don't need the getURL part, as the "open NewWindow does that already... just use this:

    Code:
    javascript:openNewWindow('http://home.iprimus.com.au/theteam/enterhome.htm','RayWhitePopup','height=5500,width=500,toolbar=no,scrollbars=no')
    That should do it.
    {CWoT - Riddle } {OSTU - Psycho} {Invasion - Team}
    Follow Me on Twitter: @Negative_Chaos
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

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
  •