#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Posts
    3
    Rep Power
    0

    Opening a flash browser from a html page


    Can anyone help me please?

    I'd like to make a popup that pops up when the user presses a link on a normal html website

    thanx in advance
    Last edited by Jamiewheeldon; February 14th, 2003 at 11:53 AM.
  2. #2
  3. No Profile Picture
    flash junkie
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2003
    Location
    CO, USA
    Posts
    172
    Rep Power
    12
    sure, you can do it using javascript:

    PHP Code:
    //javascript and html code obviously
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    <
    html>
    <
    head>
        <
    title>Untitled</title>
        <
    script type="text/javascript">
            function 
    newWin(url,name,features){
                var 
    newWin window.open(url,name,features);
            }
    </script>

    in your html:

    </head>

    <body>
    <a href="#" onClick="newWin('your.swf','swf_open','height=400,width=550,menubar=0,toolbar=0,scrollbars=0,status=0,resizable=0');" title="your link description">the link</a>

    </body>
    </html> 
    i just have a text link, but just put an image tag inside the a href tag, and replace the "your.swf" with the name of your .swf file.

    good luck,

    bret
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Posts
    3
    Rep Power
    0
    thanx a lot mate

IMN logo majestic logo threadwatch logo seochat tools logo