Opening a window with my own specs...

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
punky
Beginner
Beginner
Posts: 1
Joined: Tue Aug 06, 2002 11:34 pm

Opening a window with my own specs...

Post by punky »

Hello,

I set this function to open a window from the menu:

function MM_openwin(MM_file,MM_height,MM_width)
{
MM_config=""
MM_config+="toolbar=no,";
MM_config+="location=no,"
MM_config+="directories=no,";
MM_config+="status=no,"
MM_config+="menubar=no," //Not on Apple Mac for obvious reasons
MM_config+="scrollbars=no,"
MM_config+="resizable=yes," //Mac windows are always resizable
MM_config+="copyhistory=no,"
MM_config+="width="+MM_width+","
MM_config+="height="+MM_height
var MM_win=open(MM_file,"",MM_config);
MM_win.focus();
}


Now how do I specify so that when it open, it uses scrollbars without changing the function above but by just changing the part where I call the function. In other words, what should this say so when the window open, it has scrollbars??

Also, if anyone knows, how can I position the window to go to a certain part of the screen that I want to specify?

,"June","javascript:MM_openwin(\"services/june.html\",500,750)",,"June",1

Thanks!
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

Take a look at the new demo at
http://www.milonic.co.uk/menu/menusampl ... ampleid=16

With regard to moving your window you could try "self.moveTo(x,y)" in the opened page

-- Andy
Post Reply