Specified screen size when clicking on a link to a .swf

Well the subject heading pretty much somes up what I want...but here it is:

I need some code, so that when I click on a link to play a flash movie...the movie opens in a seperate window and that the window is a specified size. Please help me as soon as possible!

Thanks,

David Gahan
Jive Monk Studios
www.jivemonk.tk

Comments

  • CannonBallGuyCannonBallGuy Moderator Shared Hoster
    Okay...
    <!-- TWO STEPS TO INSTALL POPUP WINDOW:
    
       1.  Paste the first into the HEAD of your HTML document
       2.  Use the code to open the popup page on your site  -->
    
    <!-- STEP ONE: Copy this code into the HEAD of your HTML document  -->
    
    <HEAD>
    
    <SCRIPT LANGUAGE="JavaScript">
    <!-- This script generated free online at -->
    <!-- Wilson Information http://www.wilsoninfo.com -->
    
    <!-- Begin
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=WIDTH,height=HEIGHT,left = NaN,top = NaN');");
    }
    // End -->
    </script>
    
    
    <!-- STEP TWO: Use the following link to open the new window -->
    
    <A HREF="javascript:popUp('FILE-TO-BE-OPENED')">Open the Popup Window</A>
    
    <!-- Script Size:  0.73 KB  -->
    

    Here is a popup with toolbars, scrollbars, location bar, status bar and menu bar. It is resizable.
    If you don't want some of those features, turn them off by changing 1's to zero's in the code that goes in the head...
    ie, if you want toolbars on it should say:
    toolbar=1
    if you don't want them, make it:
    toolbar=0

    Then, just fill in the width, height and FileName... and you're done.
  • CannonBallGuyCannonBallGuy Moderator Shared Hoster
    lol. yeah right.
    CBG wrote:
    <!-- This script generated free online at -->
    <!-- Wilson Information http://www.wilsoninfo.com -->
  • DavidGahanDavidGahan Junior Member Shared Hoster
    Thanks Cannon Ball Guy...i really appreciate it.
    Although, later (after the post) i decided to go about setting it up a different way.

    Once again...Thanks,

    David Gahan
    Jive Monk Studios
    www.jivemonk.tk
  • CannonBallGuyCannonBallGuy Moderator Shared Hoster
    Took all of about 3 seconds to type "PopUp Generator" into google. lol.
  • deadfingersdeadfingers Senior Member The Royal RAM
    lmao, if you still need help man theres a tutorial i found a while back for making resizeable, colored, animated etc pop up windows specifically for flash.
    sig.jpg
  • CannonBallGuyCannonBallGuy Moderator Shared Hoster
    Lol. this thread is OLD... lol.
  • ViperViper Senior Member The Royal RAM
    for some people its easy to do coding and stuff, but for others its hard!!
  • DavidGahanDavidGahan Junior Member Shared Hoster
    lol/...yep, i think id be one of those people :P (its hard!!!) ...although I woudn't mind reading up on that tutorial, as I am re building my flash site and making it less... online website builder, like.
    Jive Monk Studios
    www.jivemonk.tk
  • voormavoorma Member NAT Warrior
    when i was still alot in the 'making websites' i di'd code something mysellf but mostly i just downloaded customizable scripts:P
    voorma5ny.jpg
Sign In or Register to comment.