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:35
Can you complete
Poster: iampedro
Dated: Friday June 14 2002 - 17:27:26 BST
Can you complete the headersamples page text info... I am looking at the javascript file and it dosen't have all the comments.. Here is all they have if someone could reply and let me know what certain things are I would be greatly appreciative.. Thanks... I am new to use the javascript.
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
"images/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();
Poster: dagon
Dated: Friday June 14 2002 - 21:29:29 BST
Sorry iampedro, i've not understood what's the matter... can you be more precise?
Poster: iampedro
Dated: Friday June 14 2002 - 22:14:05 BST
Is it possible to put comments on every line so that I can know what those feature dose..
Poster: dagon
Dated: Friday June 14 2002 - 22:53:55 BST
If you think to put a little popup window like the "alt" html tag I think there's no way. But if you want you can put some text on the status bar: try substituting this line
Code:
,"Vancouver Sun","http://www.canada.com/vancouver/vancouversun/",,"Hi iampedro!!",1
with the last in your example and keep your eyes on the status bar when you're over the link.
It'll be also a good idea to use some tables to describe your links. See the example at http://www.milonic.co.uk/menu/linkinfo_sample.php.
Bye!