Results 1 to 5 of 5

Thread: JavaScript Popup menu

  1. #1

    Thread Starter
    Fanatic Member chrismitchell's Avatar
    Join Date
    Jan 2001
    Location
    With Hobbes in New Zealand
    Posts
    568

    JavaScript Popup menu

    I am after some code for a basic pop up window... I have had a look for one and none of them really work.. I want to click on an image and then open up a new window browser with none of the buttons or menu bar etc... Its for to hold a Flash Game.

    Any help would be appreciated!

    Cheers

  2. #2
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    Code:
    window.open('yourpage.html',menubar='no',status='no',toolbar='no');
    In the ONLOAD event of the Flash game page set the width and height for the page.


    Chris
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

  3. #3
    scoutt
    Guest
    how about this one
    Code:
    <!--script LANGUAGE="JavaScript">
     function MsgBox() {
      Newwindow=window.open("alert.html","","scrollbars=1,rezisable=1,toolbar=0,status=0,
     menubar=0,location=0,directories=0,width=500,height=170");
      Newwindow.document.close();
    }
    </script-->
    sorry I forgot to add what I used to open it.
    Code:
    <FORM>
    <INPUT TYPE="button" NAME="Button1" VALUE="Alert Notice" onclick="MsgBox();">
    </FORM>

  4. #4
    scoutt
    Guest
    or
    Code:
    <!-- popUpp script-->
    <SCRIPT language="JavaScript">
    <!--
    
    function popUp(pPage) {
      window.open(pPage,'popWin','resizable=yes,scrollbars=yes,width=580,height=460,toolbar=no');
    }
    
    //-->
    </SCRIPT>
    <!-- end popUpp script-->
    and then in your link

    Code:
    <A href="javascript: popUp('big.jpg');"><img src="small.jpg" alt="" border=0></a>
    I'm sure you can add an html page in there and it should work.

  5. #5

    Thread Starter
    Fanatic Member chrismitchell's Avatar
    Join Date
    Jan 2001
    Location
    With Hobbes in New Zealand
    Posts
    568
    Cool thanks for the code... that is really helpful and has sorted out the problem I was having!!!

Posting Permissions

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



Click Here to Expand Forum to Full Width