A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: I need help with what i believe is javascript ???

  1. #1
    hey guys
    For the portfolio section of my website i want to be able to click on the link of the specific job and want the job to appear in a separate window like this....... http://www.luisbravo.com/corporate.htm

    how would i go about to doing that?

    Thanks


  2. #2
    Junior Member
    Join Date
    Apr 2002
    Posts
    23
    <html>
    <head>
    <title>Your Page Title</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script language="JavaScript">
    <!--
    function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    }
    //-->
    </script>
    </head>

    <body bgcolor="#FFFFFF" text="#000000">
    <img src="/yourbuttonimagesname.gif" width="125" height="30" onMouseDown="MM_openBrWindow('caution.htm','Title' ,'toolbar=yes,location=yes,status=yes,menubar=yes, scrollbars=yes,resizable=yes,width=300,height=300' )">
    </body>
    </html>

    That's it basically. Obviously, you'll need to customize it a bit.

    What you are doing, more or less, is assigning a behavior to a button when you click it (onMouseDown) which opens a new browser window.

    The items in the parenthesis are the pop-up window properties: ('caution.htm','Title','toolbar=yes,location=yes,s tatus=yes,menubar=yes,scrollbars=yes,resizable=yes ,width=300,height=300'). They should be pretty self-explanatory.

    I would use Dreamweaver if you are serious about designing webpages (that's where I grabbed this script), even if you have no intention of going pro. You can insert the behavior with just a few mouse clicks with Dreamweaver.

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

HTML5 Development Center