
Originally Posted by
eastboy301
can't thank you enough man, this is very useful.
i'm loading the new window from a flash movie though. Will I be able to do that with this script?
Probably not by using the usual Action Script syntax for loading a new window. However, I believe there is a way to run javascript from Flash. That would be the way to go but, it may be blocked by a pop up blocker.
If you can put a link into the Action Script and have its href be like:
Code:
<a href="javascript:NewWindow('image.jpg','amigos','676','397','no', 'Ellas y Amigos')">whatever</a>
Thats:
Code:
javascript:NewWindow('path_name_if_needed/image_name.jpg','pop_up_name','width','height','scrolling_yes/no', 'pop_up_title')
Doing it like that might make the pop up blocker think it is 'user initiated'.
Also, you can still do it as rajug was suggesting with a bit of server side code to get the image from the query string in the link but, you would have less (if any) control over the window size and chrome.
Additionally, query strings can be processed via javascript but, this requires javascript be enabled and that the server isn't messing with the query string in any way that might confuse the script. The same limitations as using a server side query string would be still be present.
Bookmarks