Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:34

error when viewing


Poster: mercator
Dated: Saturday June 22 2002 - 21:56:11 BST

Can someone help me?
I'm getting an error and I don't know why.
Here's the page: http://www.mpo.be/test/hdr.html

I'm using the standard code for use with headers:

------headers_array.js------


effect = "Fade(duration=0.2);Shadow(color='#999999', Direction=135, Strength=5)" // Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters

menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}


style1=[ // style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"navy", // Mouse Off Font Color
"ccccff", // Mouse Off Background Color
"FFEBCD", // Mouse On Font Color
"4B0082", // Mouse On Background Color
"00008B", // Menu Border Color
"12px", // Font Size in pixels
"normal", // Font Style (italic or normal)
"bold", // Font Weight (bold or normal)
"Verdana, Tahoma, Arial, Helvetica, sans-serif;", // Font Name
4, // Menu Item Padding
"arrow.gif", // Sub Menu Image (Leave this blank if not needed)
, // 3D Border & Separator bar
"66ffff", // 3D High Color
"000099", // 3D Low Color
, // Referer Item Font Color (leave this blank to disable)
, // Referer Item Background Color (leave this blank to disable)
"arrowdn.gif", // Top Bar image (Leave this blank to disable)
"ffffff", // Menu Header Font Color (Leave blank if headers are not needed)
"000099", // Menu Header Background Color (Leave blank if headers are not needed)
]



//effect2 = "Alpha( style=0,opacity=65)"
//effect=""


addmenu(menu=[
"sidemenu",
160,
14,
140,
1,
,
style1,
1,
"left",
effect,
,
,
,
,
,
,
,
,
,
,
,
,"<b>News Sites</b>","# type=header;align=center;",,"",1
,"CNN","http://www.cnn.com",,,0
,"MSNBC","http://www.msnbc.com",,,0
,"ABC News","http://www.abcnews.com",,,0
,"Vancouver Local News","show-menu=vancouvernews",,,0
,"BBC News","http://news.bbc.co.uk",,,0
,"<b>Web Master</b>","# type=header;align=center;",,"",1
,"Dynamic Drive","http://www.dynamicdrive.com",,,
,"Website Abstraction","http://www.wsabstract.com",,,
,"Freewarejava.Com","http://www.freewarejava.com",,,
,"Flaming Text","http://www.flamingtext.com",,,
,"Active-X.com","http://www.active-x.com",,,
,"Web Monkey","http://www.webmonkey.com",,,
,"Jars","http://www.jars.com",,,
,"<b>Search</b>","# type=header;align=center;",,"",1
,"Google.com", "http://www.google.com",,,1
,"Yahoo", "http://www.yahoo.com",,,1
,"Altavista", "http://altavista.com",,,1
,"Excite", "http://www.excite.com",,,1
,"<b>End Of List</b>","# type=header;align=center;",,"",1
])



addmenu(menu=["vancouvernews",
,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
,"CTV News","http://www.ctvnews.com",,,1
,"Vancouver Sun","http://www.canada.com/vancouver/vancouversun/",,,1
])



dumpmenus();