pop up window in the menu

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
Ludus
Beginner
Beginner
Posts: 6
Joined: Sun May 26, 2002 8:55 pm
Location: Rome
Contact:

pop up window in the menu

Post by Ludus »

Hi,
I need to open a pop up with the menu, but I'm not able to do it...
May I get a help, please?
See below an example:

addmenu(menu=["Arte",
,,95,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Disegni","disegni.htm",,,1
,"Web Art","webart.htm",,,1
,"Backgrounds","back.htm",,,1
])

"Web Art" is the page to open as pop up.
Thanks in advance.
Regards,
Ludus
wpatters1229
Super Advanced
Super Advanced
Posts: 90
Joined: Thu May 30, 2002 7:35 pm

Post by wpatters1229 »

Here is an example of a menu line that calls a javascript function that you place in the header of your page:
Here is the menu line in the array file;

,"For the Doctor","javascript:openMeFortheDoctor()",,"Information for Doctors",1

Here is the javascript you need in the header of the page.

<SCRIPT LANGUAGE="javascript">
function openMeFortheDoctor()
{
window.open('http://www.fragilex.org/html/4thedoctor ... height=300')
}
</SCRIPT>

Just replace the url that I use with the url of the page you want to show in the popup. You can also change any of the variables that define width and height etc.. If you just want to open a new window, just add the tag to the url as target=new. You can do that right on the menu URL area and not even use all this script.
Post Reply