basic question for potential user

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
hejira
Beginner
Beginner
Posts: 6
Joined: Thu Dec 02, 2004 9:51 pm

basic question for potential user

Post by hejira »

I have an existing menu -- just html links which look like tabs atop each page -- but they are dynamically generated depending on the user's security level so they cannot be removed. So is there any way to have the Milonic menus be triggered by an onMoseOver for an existing element, and not have an Always Visible top level menu? Or have that Always Visible menu be transparent, and sit on top of an existing element?

Hope this makes sense.

Lew
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I'm not really sure what you want. Do you by chance have an existing page with the 'tabs' and we can then see what you want to do with the menu?

You can dynamically generate the Milonic menu I believe. There are zip files for asp_mysql, or php_mysql menus. However, I am not knowledgeable in any of that area. If you want to use milonic menu and do something like what is now existing, there are people here who can help you set that up. Otherwise, I'd have to see the page to figure out what you are trying to do with the existing links and the menu.

Ruth
hejira
Beginner
Beginner
Posts: 6
Joined: Thu Dec 02, 2004 9:51 pm

Post by hejira »

I fashioned a quick example of the html/css menus and the existing DHTML drop downs (on menu 3 only). Thank you for the reply.

Lew
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Did you forget the link so we can see what you want, or have you found another solution?

Ruth
hejira
Beginner
Beginner
Posts: 6
Joined: Thu Dec 02, 2004 9:51 pm

Post by hejira »

Man o man. Mondays.

Here's the link:

http://www.web.virginia.edu/lgb6s/test/test.htm
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Here is an example of using images as the main menu items, with the sub-menus dropping from there. Is this something like you're after?

Data is at http://westcgi.west.asu.edu/sai/templat ... p_data.cfm.
John
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Ok, I see the Menu Menu2 Menu3 etc across the top and I see the links in the view source

Code: Select all

<A class=menu_active 
                  onmouseover="window.FW_showMenu (window.fw_menu_0,53,48); window.status='Coordinator main menu'; return true;" onmouseout="FW_startTimeout(); window.status=''; return true;" href=".....programmenu.aspx">
So, are you saying that when someone logs in they get a particular one of those menus? And, you want to leave the links like that, get rid of the fw.menu and use the Milonic instead? I don't have the knowledge to help on anything like that, but I think you have to be a little more specific so that those who do know such things know what exactly you want.

Ruth
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi Hejira,
I think I figured out what you want. Maybe! Download the sample Using Pop Menu Function Positioned by Images, that's sample24, you can also try the one for Using Pop Menu Function Fixed Position. I tried it with the one for images.

To test it on your page, substitute for this code that you now have for the Menu 3

Code: Select all

<A class=menu_inactive onmouseover="window.FW_showMenu(window.fw_menu_2,157,48); window.status='Schedules'; return true;"    onmouseout="FW_startTimeout(); window.status=''; return true;" 
  href="http://websites.milonic.com/admin/schedulemenu.aspx">&nbsp;menu 3&nbsp;</a>
the following code

Code: Select all

<img src=transparent.gif border=0 name=milonicmenu id=milonicmenu><a href="http://websites.milonic.com/admin/schedulemenu.aspx onmouseover="popup('milonic','milonicmenu')" onmouseout=popdown()>&nbsp;menu 3&nbsp;</a>
Then just after the body tag put the calls for the milonic menu

Code: Select all

<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>	
<script	language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");		
  else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>"); 
</script>

<SCRIPT language=JavaScript src="menu_data.js" type=text/javascript></SCRIPT>
When mouseOver the Menu3 button you will see the Milonic Menu drop down.

What this pop menu does is to position itself based on the transparent.gif which you now have right next to the Menu 3 title. To shift the menu, in the menu_data.js file, go to the menu titled Milonic and put in a top="offset=whatever pixels you need"; and left="offset="whatever pixels"; Try this

Code: Select all

with(milonic=new menuname("Milonic")){
style=menuStyle;
top="offset=10";
left="offset=0";
I hope that's what you meant.

Ruth
Post Reply