3 Frames - Menu version 5 problem

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
sjelle
Beginner
Beginner
Posts: 4
Joined: Sun Aug 10, 2003 2:30 am
Location: Belgium

3 Frames - Menu version 5 problem

Post by sjelle »

OK. I've tried the version 5 menu and dumped my (still not working) version 3 menu.

I'm working on a non-profit school website. I'm having the following problems :

1) the website consists out of 3 frames (header with banner, left with the menu v5 and main were the content will be shown)

Html :

<frameset rows="100,*" border="0">
<frame name="header" src="frames_header.htm" MARGINWIDTH="0" marginheight="0" scrolling="no" frameborder="0" noresize>
<frameset cols="130,*" border="0">
<frame name="side" src="frames_side.htm" MARGINWIDTH="0" marginheight="0" scrolling="no" frameborder="0" noresize>
<frame name="main" src="frames_body.htm" MARGINWIDTH="0" marginheight="0" scrolling="no" frameborder="0" >
</frameset>


2) configuring the menu structure goes fine in version 5. However when I run the menu and go to the submenu, it is stuck into the left frame and thereby is displayed over the menu.

3) I seem to have huge difficulties getting my content in the main frame. I always get an error when trying.

In the menu_data.js i've set the following line :

with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=20;
left=260;
alwaysvisible=1;
aI("text=Home;url=http://www.src-veldenstraat.be/ target=_blank;status=Terug naar de startpagina;");
aI("text=De School;showmenu=school;status=De School;");
aI("text=Schoolstructuur;showmenu=schoolstructuur;status=Schoolstructuur;");
aI("text=Oudercomité;showmenu=oudercomite;status=Oudercomité;");
aI("text=Kalender;showmenu=kalender;status=Kalender;");
aI("text=Fotoalbum;showmenu=fotoalbum;status=Fotoalbum;");
aI("text=Klapgat;showmenu=klapgat;status=Klapgat;");
aI("text=Speelplekje;showmenu=speelplekje;status=Speelplekje;");
aI("text=Links;showmenu=links;status=Links;");
aI("text=Contactinfo;showmenu=contactinfo;status=Contactinfo;");
}

with(milonic=new menuname("school")){
style=menuStyle;
top=120;
left=150;
aI("text=Directie-Leerkrachten;url=javascript:openIFrame('main,'http://www.google.be');;status=Directie - Leerkrachten;");
}


drawMenus();

I've taken the google website as an example but it refuses to load.
I've been stuck a few days thinking what I'm doing wrong

Can anyone help me solving this ?
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Two things, right now (and probably forever) the menu v5 does not support frames. Menus will not render over frame borders. Andy doesn't really like frames, and I'd like to say I don't either. They are a pain to get things looking right. But they will render over iframes with the hidediv tag. So you can try using iframes...they are like images but you can change their source. Also if you are using asp or php, you can use server side includes to bring in any borders, banners, or menus. Its WAY easier, definetly consider it. (Thanks for trying/using version 5!) :D

Secondly, you can target other iframes by using the target tag. Your aI tag would say url=www.google.com;target=myframe1; You dont need the javascript thing, I dont think.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
sjelle
Beginner
Beginner
Posts: 4
Joined: Sun Aug 10, 2003 2:30 am
Location: Belgium

Post by sjelle »

Thanks for answering that quickly but I don't understand what you are trying to tell me (sorry)

How do I use Iframes ?
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

An i frame is a tag on a page that allows you to import any other webpage as if it was part of the page. It stands for INLINE FRAME. It behaves just like an img tag, with width and height properties, but its src property can be a URL. If you look at http://milonic.com/menusample.php?sampleid=11 you will see what I mean. You can then have your menu open up any page inside of the iframe, without have to reload the main page. Google HTML IFRAMES and see what you can learn!
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

I've upgraded as far as I can go with IE 5.1.6

This is what I see in sample 11.

http://www.geocities.com/maz_arti/example11.gif
(note: geocities probably doesn't allow graphic links)

:cry:
maz
Post Reply