PDA

View Full Version : HTML popup...too many!


haznut
12-09-2004, 09:37 PM
Hi all. Thanx for reading.

I have a flash movie with images that, when clicked, calls an html popup.
Problem is, there are more than 90 images and i donīt wanna have 90 htmls... one for each image.

Question is: is there a way that a single HMTL popup can be used for all the images? so everytime i click each image in flash, a single popup opens the image i choose?

thanx a lot!

CookieDog
12-09-2004, 10:24 PM
Give your window a name, and then reference this window name for all of your photos to open up in that window.

In Javascript:
window.open("anywhere.html", "myWindowName", "width=150,height=210");

You can target that window in your HTML to load your images, or another url, in that window, if it already exists:
<A HREF="http://www.anywhere.com/" TARGET="myWindowName">Anywhere</A>

Can also do it this way:
<A HREF="http://www.anywhere.com/"
onClick="window.open('http://www.anywhere.com/', 'myWindowName');">Anywhere</A>