Bodmins
08-12-2002, 03:52 PM
Well was hoping to avoid this, because it is quite confusing as it is writen in perl (and data driven), but I will keep it simple and give you the output.
The starting point dev0.htm:
<html>
<head>
<title></title>
</head>
<frameset framespacing="0" border="false" frameborder=0 cols="160,*">
<frame name="contents" target="main" src="dev1.htm" scrolling="no" noresize>
<frame name="main" src="dev2.htm">
</frameset>
</html>
dev1.htm (simplified because it is really long):
<html>
<head>
<title></title>
addmenu(menu=[ // This is the array that contains your menu properties and details
"simplemenu1", // Menu Name - This is needed in order for the menu to be called
333, // Menu Top - The Top position of the menu in pixels
10, // Menu Left - The Left position of the menu in pixels
140, // Menu Width - Menus width in pixels
1, // Menu Border Width
, // Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
plain_style, // Properties Array - this is set higher up, as above
1, // Always Visible - allows the menu item to be visible at all time (1=on/0=off)
"left", // Alignment - sets the menu elements text alignment, values valid here are: left, right or center
effect, // Filter - Text variable for setting transitional effects on menu activation - see above for more info
, // Follow Scrolling Top Position - Tells the menu to follow the user down the screen on scroll placing the menu at the value specified.
, // Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
, // Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
, // Position of TOP sub image left:center:right
, // Set the Overall Width of Horizontal Menu to 100% and height to a specified amount
, // Right To Left - Used in Hebrew for example. (1=on/0=off)
, // Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
, // ID of the div you want to hide on MouseOver (useful for hiding form elements)
, // Reserved for future use
, // Reserved for future use
, // Reserved for future use
// "Menu Item Text", "URL", "Alternate URL for submenu holders", "Status Text", "Separator Bar Width"
,"Calendars","show-menu=calendars source-frame=main",,"Calendars",1
,"Contacts","show-menu=contacts source-frame=main",,"Contacts",1
,"Address Book","show-menu=address source-frame=main",,"Address Book",1
])
dumpmenus() // This must be the last line in this file
// -->
</script>
<SCRIPT language="JavaScript" src="nav.js" type="text/javascript"></SCRIPT>
</head>
<body>
</body>
</html>
dev2.html (simplified) - this works:
<html>
<head>
<script>
addmenu(menu=["calendars",
,,135,1,"",plain_style,,,effect,,,,,,,,,,,,
,"Personal Diary", "cal.pl",,,1
,"rogcal", "cal.pl?CalendarName=rog",,,1
])
addmenu(menu=["contacts",
,,135,1,"",plain_style,,,effect,,,,,,,,,,,,
,"Students", "FrameC.pl?url=students.pl",,,1
,"Personal Students", "FrameC.pl?url=personal.pl",,,1
,"Administrator","FrameC.pl?url=contacts.pl",,,1
])
addmenu(menu=["Address Book",
,,135,1,"",plain_style,,,effect,,,,,,,,,,,,
,"Course Details", "cpm_enq.pl",,,1
,"Year Details", "enq.pl",,,1
])
</script>
</head>
<body>
</body>
</html>
dev3.htm:
<html>
<head>
<title></title>
</head>
<frameset framespacing="0" border="false" frameborder=0 rows="230,*">
<frame name="rtop" target="rbottom" src="dev4.htm" scrolling="no" noresize>
<frame name="rbottom" src="dev5.htm">
</frameset>
<script>
addmenu(menu=["calendars",
,,135,1,"",plain_style,,,effect,,,,,,,,,,,,
,"Personal Diary", "cal.pl",,,1
,"rogcal", "cal.pl?CalendarName=rog",,,1
])
addmenu(menu=["contacts",
,,135,1,"",plain_style,,,effect,,,,,,,,,,,,
,"Students", "FrameC.pl?url=students.pl",,,1
,"Personal Students", "FrameC.pl?url=personal.pl",,,1
,"Administrator","FrameC.pl?url=contacts.pl",,,1
])
addmenu(menu=["Address Book",
,,135,1,"",plain_style,,,effect,,,,,,,,,,,,
,"Course Details", "cpm_enq.pl",,,1
,"Year Details", "enq.pl",,,1
])
</script>
<script language=JavaScript src="menu.js" type=text/javascript></script>
</html>
dev5.htm:
<html>
<head>
<title></title>
<script>
addmenu(menu=["calendars",
,,135,1,"",plain_style,,,effect,,,,,,,,,,,,
,"Personal Diary", "cal.pl",,,1
,"rogcal", "cal.pl?CalendarName=rog",,,1
])
addmenu(menu=["contacts",
,,135,1,"",plain_style,,,effect,,,,,,,,,,,,
,"Students", "FrameC.pl?url=students.pl",,,1
,"Personal Students", "FrameC.pl?url=personal.pl",,,1
,"Administrator","FrameC.pl?url=contacts.pl",,,1
])
addmenu(menu=["Address Book",
,,135,1,"",plain_style,,,effect,,,,,,,,,,,,
,"Course Details", "cpm_enq.pl",,,1
,"Year Details", "enq.pl",,,1
])
</script>
<script language=JavaScript src="menu.js" type=text/javascript></script>
</head>
<body>
</body>
</html>
I hope the above makes vague sense!
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.