PDA

View Full Version : Javascript/ Actionscript Pop up using html web page



Foxy8609
11-21-2005, 03:56 PM
Ok for my first project at my internship, I have to make pop up windows for each picture in flash. The pop up window is going to be an html page. What is the action script I need to use. I have tried many other codes and nothing would happen.

jscheuer1
11-21-2005, 07:00 PM
What part of this needs to be flash? If you are popping up html pages onclick, the easiest way is the html:


<a href="some.htm" target="_blank">Link Text or Image</a>

But, folks usually want a bare bones window over which they have some control, so the next most simplest way is adding a javascript onclick event:


<a href="some.htm" target="_blank" onclick="window.open(this.href,'','width=300, height=300, top=200, left=250, scrollbars, resizable');return false;">Link Text or Image</a>

More control and customization are possible by passing off the onclick event to a function. A good example of this is found here (http://dynamicdrive.com/dynamicindex8/popwin.htm) on DD.