Click to See Complete Forum and Search --> : i have a probleme with frames and javascript menu


hicham
01-31-2003, 11:36 AM
i have an html page witch contains a frame and a javascript dynamic menu, so when i select a sub-menu it appears under the frame !!!!!!!! is there any solution that let the menu appear correctly ?
please help

gil davis
01-31-2003, 11:43 AM
The only solution is to move it. A DHTML object cannot appear outside of it's window or frame.

khaki
01-31-2003, 11:51 AM
I'm not sure if there is any way to dynamically alter the the size of the frame (unless you set the scroll property to "auto" - but that wouldn't look very appealing), so you are going to need to resize the row height of the frame to fit the entire menu at it's fullest extension.

Either that or scrap the frames and put the menu on each page.

Not what your looking for - I know.

Maybe someone knows how to get at the row height of the farmes page via a javascript function attached to the submenus in your menu (is that what your hoping for?). If so, THAT's something I'd really like to find out how to do as well.

I'll keep an eye on this post in case someone comes through.
k

Zach Elfers
01-31-2003, 11:54 AM
I have seen a script which writes the dropdown to the bottom frames document. I have no idea how this script worked, and I am not sure where it is.

khaki
01-31-2003, 12:03 PM
I guess that you are looking to do this with frames, but what about placing the JavaScipt menu into a JS page and placing a link to it on each page.

I mean, if you already have all of the pages - just add the link (this way the menu items can encroach on the page content instead of disappearing out of the frame).

Just a thought.
k