PDA

View Full Version : Jim's DHTML Menu - Open in New Window with Size



arkitekt
03-11-2005, 08:50 AM
Hi Everyone,

I'm not sure if anyone has tried this but I'm interested in using Jim's DHTML Menu but I was wondering if there is anyway to open a new window from this menu at a specified size. Similar to other scripts on DD - where you can set the width and height of the window that is created.

This would be a great option to have, Newwin is nice but in my case I'd like that new window to be a nice size to fit the content.

Thanks to anyone that might have some ideas on how it could be done and would be willing to share.

Here's the link to the script in case you're not familiar with it
http://www.dynamicdrive.com/dynamicindex1/jimmenu/index.htm

Thanks,

Arkitekt

JF sly
03-11-2005, 05:27 PM
Yes you can specify a new window with "Jims DHTML Menu"

Below is the code from one of mine that opens the game in a new window.



menus[2].addItem("javascript:void window.open('./games/tic/ttt.htm','tictactoe','top=50,left=125,width=475,height=430')", "", 90, "center", "Tic Tac Toe", 0);