Computer problems,Computer help
*AX SOFT>>>Programming & Design

How can I have a link to a flash file (.swf) open in a new window on my website?


I have a list of games in .swf format and that list is posted on my site.
When the user clicks each link I would like it to open the swf game in a new window, preferably of an automatic size, if not a specific one for all the swf files.
Right now I just link to each flash file and that opens the file in the current browser window, making it very large, the same size as the page you are viewing, I don't want that.

I am using HTML in Dreamweaver CS3.
I wouldn't mind using flash, just know more about HTML.

When you link to the .swf you can use target="blank" in the href....

<A HREF="link.swf" target="_blank">

This will force the page to open in a new window...

If you're controlling the new window you can use javascript on that page to make it a specific size.

<script language="JavaScript">
window.resizeTo(640, 480)
</script>

http://www.flashslider.com/

you didn't mention what coding language you're using for the main part of your site.

i know i prefer to design my sites all in flash for now, as my knowledge is limited in CSS and HTML so i can really only give you guidance on that - and there's this great tutorial on creating javascript popup windows that you load the .swf files into.....

see this tutorial if you're working in flash: http://learn005.com/podcasts/flash/javas...

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • Error C4430: missing type specifier - int assumed. Note: C++ does not support default-int?

    main() ...should be... int main(void) ...aside from that, you should probably work on understanding how "else if" works.

    ...
  • Open source function... Or how to do this conversion?

    I recommend the open source CxImage library located at

    ...
  • Can anybody tell me what font this is?

    It's a version of DIN. See ...

  • I do I exclude myself from being counted as a hit on my website?

    FOR GOOGLE ANALYTICS ...

  • What is the best sample rate and bit depth to embed sound effects into Flash for a website game?

    16bit 44.1 for music, going down to 8bit 22 for sound effects, consider using the sound FX in mono to conserve space (most people won't notice).

    ...
  • How can i make a counter appear in the next line at a certain number in c++?

    Assuming your counter starts at zero: if (!(count % 5)) printf("\r"); Just add that line into your loop (changing 'count' to whatever your variable name is) if your cou...

  • I have gamemaker 4 from yoygames. is it still ok to distribute games made with gm4?

    Yes and no. Your actual rights are stipulated in the Game Maker Software end user licence agreement and the Yoyogames.com website. If you upload your GM game to Yoyogames.com, they "can use ...

  • Whats the code for making a java applet (picture) which uses: a semi-oval, oval, circle, rectangle, and line?

    There are a number of ways to accomplish this. The solution depends on if you're wanting to use AWT, Graphics2D, JFC Swing, or even a non-standard library. The shortest number of code lines...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster