Replies Back to Article

Pop Up window off a hotspot link

Just to give you a hint...
March 26, 2004 by Kutt Niinepuu
The hotspot acts like a regular link. So you could use any suitable javascript you could find on the net and call it via the HREF property or via the onClick event. HREF version would be easier (you insert the short javascript code directly between the double quotes of the link). Something like (beware, the syntax surely contains errors, as I'm making this up right now, but you can find the scripts everywhere)

The code, the code!!!
href="javascript: newwindow('path_to_jpg_file', 'popup_title', width=200, height=200, noresize, toolbars=no);"
DW has it!
March 28, 2004 by Thomas Bay

Simply open Dreamweavers built in behaviours. At the bottom set "Show Events For" to "4.0 Browsers And Later" (if it' not all ready checked)

Next apply the behaviour "Open Browser Window", set the parameters you need for your popup and DW will do the javascript and everything else needed to make it work

 

 

 

RE: DW has it!
March 28, 2004 by Thomas Bay
Remember to apply the behaviour with the hotspot selected.
The extension for it
July 14, 2004 by Alex July

If you don't know how or don't want to check the image dimensions so the popup is the size of the image check out this extension. You can also set the title and the position of the pop-up window. This extension is compatible with Mozilla and Opera as well as Internet Explorer.

RE: The extension for it
July 14, 2004 by Alex July
Sorry, you'd have to delete "http://" at the beginning of the link.