1. Home
  2. Computing & Technology
  3. Animation

Flash Animation 24: Flash for Web Design: Creating a Thumbnail Gallery

By Adrien-Luc Sanders, About.com

8 of 9

Inserting the Javascript Command and Breaking it Down

Now, in the URL field, you're going to insert the following code (the sections in bold are the sections that you will need to change):

javascript:popup=window.open('yourpage.htm','artwindow','width=650,height=600,left=0,top=0,toolbar=No,location=No,scrollbars=Yes,status=No,resizable=No,fullscreen=No') ;void(0) ;

Here are the things that you need to change:

  • popup: The code that we're inserting is a function, and that function needs a name. This is the function name; you can change it to anything you want.
  • yourpage.htm: This should be the name of the web page that you want to open. If it's in the same directory as your Flash movie, you can just put the file name. If it's in a different directory, you have to add a path (such as portfolio/yourpage.htm).
  • artwindow: New windows need to be named in Javascript, so they can be referenced later (like instances of symbols in ActionScript). This is where you assign a name to your window; again, you can name it anything that you want.
  • width=650: This defines the fixed width of the window that opens, in pixel units. Change the number to reflect how wide you want your window to be.
  • height=600: This defines the fixed height of the window that opens, in pixel units. Change the number to reflect how tall you want your window to be.
Explore Animation
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Animation
  4. Flash Animation Tutorials
  5. Flash Animation 24: Flash for Web Design: Creating a Thumbnail Gallery With Popups

©2009 About.com, a part of The New York Times Company.

All rights reserved.