Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:54

Using javascript to open fixed-sized new window...


Poster: aquaverse
Dated: Friday February 11 2005 - 20:58:04 GMT

I need to open a fixed-sized window using javascript urgently. Can anyone give me the proper syntax for this using the Milonic menus? Any examples out there?

Thanks in advance

Re: Using javascript to open fixed-sized new window...


Poster: aquaverse
Dated: Friday February 11 2005 - 21:37:54 GMT

aquaverse wrote:
I need to open a fixed-sized window using javascript urgently. Can anyone give me the proper syntax for this using the Milonic menus? Any examples out there?

Thanks in advance


I figured it out from another post after all. Nevermind.


Poster: John
Dated: Saturday February 12 2005 - 5:13:31 GMT

A check of the samples on the main site would have shown you this (plus a lot more!).

This is maybe what he´s looking for


Poster: willemk
Dated: Saturday February 12 2005 - 12:38:29 GMT

Code:
     $memmenu .= "aI(\"text=$lang[banu2u];clickfunction=Popup('u2u.php', 'Window', 700, 450);\");\n";

The clickfunction allows you to use seperate javascripting. The Popup function is mine but I call it via the clickfunction of milonic.

Popup function
Code:
function Popup(url, window_name, window_width, window_height) {
    settings=
    "toolbar=no,location=no,directories=no,"+
    "status=no,menubar=no,scrollbars=yes,"+
    "resizable=yes,width="+window_width+",height="+window_height;


    NewWindow=window.open(url,window_name,settings);
}



Cheers[/code]