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:31
menu in opera 6
Poster: catt
Dated: Thursday July 18 2002 - 18:14:25 BST
when I first load or reload my page with the menu on it in an opera browser the drop-downs do not work at all. The only way I can get round this is firstly click on a link in the menu which has no drop-down within it then hit back on the browser.
Anyone have any ideas why this is happening and can I fix it?
Thanx
code.....
Poster: catt
Dated: Friday July 19 2002 - 8:51:14 BST
I cannot give you the url as connections are not accepted from external computers. Here is the code for the menu. As I said it is only in Opera browser (6) that this problem occurs.
Any help would be great thanx! :)
[code]
//The following line is critical for menu operation, and MUST APPEAR ONLY ONCE. If you have more than one menu_array.js file rem out this line in subsequent files
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)}
//Please leave the above line intact. The above also needs to be enabled if it not already enabled unless this file is part of a multi pack.
////////////////////////////////////
// Editable properties START here //
////////////////////////////////////
// Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters
if(navigator.appVersion.indexOf("MSIE 6.0")>0)
{
effect = "Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)"
}
else
{
effect = "Shadow(color='#777777', Direction=135, Strength=5)" // Stop IE5.5 bug when using more than one filter
}
timegap=500 // The time delay for menus to remain visible
followspeed=5 // Follow Scrolling speed
followrate=40 // Follow Scrolling Rate
suboffset_top=10; // Sub menu offset Top position
suboffset_left=10; // Sub menu offset Left position
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
"ffebdc", // Mouse On Font Color
"4b0082", // Mouse On Background Color
"000000", // Menu Border Color
12, // Font Size in pixels
"normal", // Font Style (italic or normal)
"bold", // Font Weight (bold or normal)
"Verdana, Arial", // 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
"Purple", // Current Page Item Font Color (leave this blank to disable)
"pink", // Current Page Item Background Color (leave this blank to disable)
, // 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)
"navy", // Menu Item Separator Color
]; // Sub menu offset Left position
style2=[ // 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
"ffebdc", // Mouse On Font Color
"4b0082", // Mouse On Background Color
"000000", // Menu Border Color
10, // Font Size in pixels
"normal", // Font Style (italic or normal)
"bold", // Font Weight (bold or normal)
"Verdana, Arial", // 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
"Purple", // Current Page Item Font Color (leave this blank to disable)
"pink", // Current Page Item Background Color (leave this blank to disable)
, // 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)
"navy", // Menu Item Separator Color
]; // Sub menu offset Left position
addmenu(menu=[ // This is the array that contains your menu properties and details
"mainmenu", // Menu Name - This is needed in order for the menu to be called
0, // Menu Top - The Top position of the menu in pixels
0, // Menu Left - The Left position of the menu in pixels
, // Menu Width - Menus width in pixels
1, // Menu Border Width
"center", // Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of center"center:middle"
style1, // 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
, // Filter - Text variable for setting transitional effects on menu activation - see above for more info
1, // Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1, // 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 the specified amount (Leave blank to disable)
, // 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)
, // Background image for menu when BGColor set to transparent.
, // Scrollable Menu
, // Reserved for future use
,"Sales","show-menu=sales",,"",1 // "Description Text" , "URL.htm" , "Alternate URL.htm" , "Status" , "Separator Bar"
,"Service","show-menu=service",,"",1
,"Parts","show-menu=parts",,"",1
,"Finance","show-menu=finance",,"",1
,"Training","show-menu=training",,"",1
,"Admin","show-menu=admin",,"",1
,"Franchises","show-menu=franchises",,"",1
,"Community","show-menu=community",,"",1
,"Support","show-menu=support",,"",1
,"Health & Saftey","show-menu=health",,"",1
,"PostCode ?","POSTCODE2/Start.htm",,"post code look up",1
])
addmenu(menu=["sales",
,,120,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Stock Locator","locator.aspx",,,1
,"Payment Calculator"," /Sales/financecalculator/monthlypayment.htm",,,1
,"Weekly Figures"," /Sales/default.asp",,,1
,"Salesmans Office","http://193.0.9.253/salesmanoffice",,,1
,"Sales League"," /Sales/bin/salesleague.htm",,,1
,"Sale Authorisation Form"," /Sales/admin/staff_sale_authorisation.htm",,,1
])
addmenu(menu=["salesman",
,,170,1,"",style2,,"left",effect,,,,,,,,,,,,
,"CNN","http://www.cnn.com",,,0
,"MSNBC","http://www.msnbc.com",,,0
,"ABC News","http://www.abcnews.com",,,0
,"BBC News","http://news.bbc.co.uk",,,0
])
addmenu(menu=["service",
,,120,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Booking Manager"," /servicebooking/default.aspx",,,
,"Crow Road Service Diary"," /crowroadservicediary/login.aspx?ReturnUrl=%2fcrowroadservicediary%2fdefault.aspx",,,
])
addmenu(menu=["parts",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"TechWeb","http://www.cnn.com",,,0
])
addmenu(menu=["finance",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Central Fleet Admin"," /cfa",,,0
])
addmenu(menu=["training",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Performance Manager 1"," /Sales/presentations/pm1/index.htm",,,0
,"Performance Manager 2"," /Sales/presentations/pm2/index.htm",,,0
,"Salesman 'Sean'"," /Sales/presentations/pm3/index.htm",,,0
])
addmenu(menu=["admin",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Special Offers"," /admin/special/login.aspx?ReturnUrl=%2fadmin%2fspecial%2fdefault.aspx",,,0
,"Vacancies"," /admin/jobs/default.aspx",,,0
,"Application Form"," /admin/webjobapplication.gif",,,0
])
addmenu(menu=["franchises",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"A-F","show-menu=a-f",,,1
,"G-M","show-menu=g-m",,,1
,"N-T","show-menu=n-s",,,1
,"U-Z","show-menu=t-z",,,1
])
addmenu(menu=["a-f",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Alfa Romeo","show-menu=alfa",,,1
,"Citroen","show-menu=citroen",,,1
,"Daewoo","show-menu=daewoo",,,1
,"Fiat","show-menu=fiat",,,1
,"Ford","show-menu=ford",,,1
])
addmenu(menu=["alfa",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Aberdeen Fiat/Alfa Romeo","URL.htm",,,1
,"Ayr Fiat & Alfa Romeo","URL.htm",,,1
,"Edinburgh Fiat/AlfaRomeo","URL.htm",,,1
,"Perth Fiat/Alfa Romeo","URL.htm",,,1
])
addmenu(menu=["citroen",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Aberdeen","URL.htm",,,1
,"Armadale","URL.htm",,,1
,"Falkirk","URL.htm",,,1
,"Inverness","URL.htm",,,1
,"Liverpool","URL.htm",,,1
,"Paisley","URL.htm",,,1
,"Perth","URL.htm",,,1
])
addmenu(menu=["daewoo",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Glasgow","URL.htm",,,1
])
addmenu(menu=["fiat",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"FIAT STOCK MANAGER"," /FiatStockManager/login.aspx?ReturnUrl=%2fFiatStockManager%2fdefault.aspx",,,1
,"Aberdeen Fiat/Alfa Romeo","URL.htm",,,1
,"Ayr Fiat & Alfa Romeo","URL.htm",,,1
,"Broxburn","URL.htm",,,1
,"Dundee Fiat & Rover/MG","URL.htm",,,1
,"Dunfermline","URL.htm",,,1
,"Edinburgh Fiat/Alfa Romeo","URL.htm",,,1
,"Elgin","URL.htm",,,1
,"Falkirk","URL.htm",,,1
,"Glasgow","URL.htm",,,1
,"Kirkcaldy","URL.htm",,,1
,"Perth Fiat/Alfa Romeo","URL.htm",,,1
])
addmenu(menu=["ford",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Aberdeen (South)","URL.htm",,,1
,"Aberdeen (North)","URL.htm",,,1
,"Aberdeen (Menzies Rd)","URL.htm",,,1
,"Ayr","URL.htm",,,1
,"Kilmarnock","URL.htm",,,1
,"Peterhead","URL.htm",,,1
])
addmenu(menu=["g-m",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Honda","show-menu=honda",,,1
,"Hyundai","show-menu=hyundai",,,1
,"Lexus","show-menu=lexus",,,1
,"Mazda","show-menu=mazda",,,1
,"MG","show-menu=mg",,,1
,"Motorstore","show-menu=motorstore",,,1
])
addmenu(menu=["honda",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Ayr","URL.htm",,,1
,"Kirkcaldy","URL.htm",,,1
])
addmenu(menu=["hyundai",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Aberdeen","URL.htm",,,1
,"Glasgow Motorstore/Hyundai","URL.htm",,,1
])
addmenu(menu=["lexus",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Glasgow","URL.htm",,,1
])
addmenu(menu=["mazda",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Aberdeen","URL.htm",,,1
,"Paisley","URL.htm",,,1
,"Stirling","URL.htm",,,1
])
addmenu(menu=["mg",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Dundee Fiat & Rover/MG","URL.htm",,,1
,"Edinburgh Peugeot & Rover/MG","URL.htm",,,1
,"Glasgow Rover/MG (City)","URL.htm",,,1
,"Glasgow Rover/MG(East)","URL.htm",,,1
,"Glasgow Rover/MG & Nissan (East)","URL.htm",,,1
,"Kilmarnock Rover/MG","URL.htm",,,1
,"Liverpool Seat & Rover/MG","URL.htm",,,1
])
addmenu(menu=["motorstore",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"East Kilbride","URL.htm",,,1
,"Glasgow Motorstore/Hyundai","URL.htm",,,1
,"Leyland","URL.htm",,,1
,"Motherwell","URL.htm",,,1
])
addmenu(menu=["n-s",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Nissan","show-menu=nissan",,,1
,"Peugeot","show-menu=peugeot",,,1
,"Proton","show-menu=proton",,,1
,"Renault","show-menu=renault",,,1
,"Rover","show-menu=rover",,,1
,"Seat","show-menu=seat",,,1
])
addmenu(menu=["nissan",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"NISSAN STOCK MANAGER"," /NissanStockManager/login.aspx?ReturnUrl=%2fNissanStockManager%2fdefault.aspx",,,1
,"Cumbernauld","URL.htm",,,1
,"Dumbarton Nissan & Renault","URL.htm",,,1
,"Dumfries","URL.htm",,,1
,"Dundee Renault & Nissan","URL.htm",,,1
,"Edinburgh (East)","URL.htm",,,1
,"Edinburgh (West)","URL.htm",,,1
,"Glasgow (East)","URL.htm",,,1
,"Glasgow Rover/MG & Nissan (East)","URL.htm",,,1
,"Glasgow (West)","URL.htm",,,1
,"Liverpool","URL.htm",,,1
,"Livingston","URL.htm",,,1
,"Perth","URL.htm",,,1
,"Prestwick","URL.htm",,,1
])
addmenu(menu=["Peugeot",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Edinburgh Peugeot & Rover/MG","URL.htm",,,1
,"Glasgow","URL.htm",,,1
,"Inverness","URL.htm",,,1
])
addmenu(menu=["Proton",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Glasgow (North)","URL.htm",,,1
,"Glasgow (South)","URL.htm",,,1
,"Glasgow (West)","URL.htm",,,1
])
addmenu(menu=["renault",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Bearsden","URL.htm",,,1
,"Bishopbriggs","URL.htm",,,1
,"Dumbarton Nissan & Renault","URL.htm",,,1
,"Dundee Renault & Nissan","URL.htm",,,1
,"Grangemouth","URL.htm",,,1
,"Paisley","URL.htm",,,1
,"Stirling","URL.htm",,,1
])
addmenu(menu=["Rover",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Dundee Fiat & Rover/MG","URL.htm",,,1
,"Edinburgh Peugeot & Rover/MG","URL.htm",,,1
,"Glasgow Rover/MG (City)","URL.htm",,,1
,"Glasgow Rover/MG (East)","URL.htm",,,1
,"Glasgow Rover/MG & Nissan (East)","URL.htm",,,1
,"Kilmarnock Rover/MG","URL.htm",,,1
,"Liverpool Seat & Rover/MG","URL.htm",,,1
])
addmenu(menu=["Seat",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Clydebank","URL.htm",,,1
,"Edinburgh","URL.htm",,,1
,"Elderslie","URL.htm",,,1
,"Liverpool Seat & Rover/MG","URL.htm",,,1
])
addmenu(menu=["t-z",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Toyota","show-menu=toyota",,,1
,"Used Car Centre","show-menu=used",,,1
,"Vauxhall","show-menu=vauxhall",,,1
,"Volkswagen","show-menu=vw",,,1
,"Volvo","show-menu=volvo",,,1
])
addmenu(menu=["toyota",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Aberdeen","URL.htm",,,1
,"Bishopbriggs","URL.htm",,,1
,"Paisley","URL.htm",,,1
,"Stirling","URL.htm",,,1
])
addmenu(menu=["used",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Parkgrove Edinburgh","URL.htm",,,1
,"Dumfries Sales Centre","URL.htm",,,1
])
addmenu(menu=["vauxhall",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Dundee","URL.htm",,,1
,"Glasgow (North)","URL.htm",,,1
,"Glasgow (South)","URL.htm",,,1
,"Greenock","URL.htm",,,1
,"Paisley","URL.htm",,,1
])
addmenu(menu=["vw",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Glasgow (North)","show-menu=vwGN",,,1
,"Glasgow (South)","URL.htm",,,1
,"Greenock","URL.htm",,,1
,"Helensburgh","URL.htm",,,1
])
addmenu(menu=["vwGN",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Crow Road Service Diary"," /crowroadservicediary/login.aspx?ReturnUrl=%2fcrowroadservicediary%2fdefault.aspx",,,
])
addmenu(menu=["volvo",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Aberdeen","URL.htm",,,1
,"Inverness","URL.htm",,,1
,"Kircaldy","URL.htm",,,1
,"Stirling","URL.htm",,,1
])
addmenu(menu=["community",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Forum"," forum/",,,0
,"Latest News"," menu/news/",,,0
,"Weekly Poll","/weekly_poll/admin.htm" "target=_blank",,,0
])
addmenu(menu=["support",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Downloads","show-menu=downloads",,,1
,"Security","URL.htm goes here",,,1
,"Manuals","show-menu=manuals",,,1
,"Contact","show-menu=other",,,1
])
addmenu(menu=["other",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"C. Thomson","x __at__ x.com",,"",1
,"G. Mclean","x __at__ x.com",,"",1
])
addmenu(menu=["downloads",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Winzip","winzip80.exe",,,1
,"Acrobat","acroread.exe",,,1
,"Norton","latestnorton.zip",,"Norton Anti Virus Update - keep safe",1
,"Flash Player","flash.exe",,,1
])
addmenu(menu=["manuals",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Email","show-menu=email",,,1
,"Acrobat","URL.htm goes here",,,1
,"Outlook Archiving"," /headoffice/email/archiveoutlook.htm",,,1
])
addmenu(menu=["email",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Email Manual"," /EmailManual.htm",,,1
,"Email Policy","show-menu=policy",,,1
])
addmenu(menu=["policy",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Web Format","Email Policy version1.1.doc",,,1
,"Word Format"," /headoffice/email/Email%20Policy%20version1.1.htm",,,1
])
addmenu(menu=["health",
,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Accident Form","Accident%20Types%202.doc",,"",1
,"Medical Form MIS20","MIS20.doc",,"",1
])
dumpmenus()
[/code]
Poster: John
Dated: Monday July 22 2002 - 15:28:48 BST
Not the expert here and don't know if this makes a difference, but your style definitions are a bit different than what I see in the release files. Here's one from Andy...
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
"ffebdc", // Mouse On Font Color
"4b0082", // Mouse On Background Color
"000000", // Menu Border Color
12, // Font Size in pixels
"normal", // Font Style (italic or normal)
"bold", // Font Weight (bold or normal)
"Verdana, Arial", // 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
"Purple", // Current Page Item Font Color (leave this blank to disable)
"pink", // Current Page 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)
"navy", // Menu Item Separator Color
]
Note it ends with "// Menu Item Separator Color" and a single "]", where you have yours ending with "]; // Sub menu offset Left position". I know the comment doesn't matter, but what about the ";" after the "]" in your version?
thanx
Poster: catt
Dated: Monday July 22 2002 - 15:32:34 BST
Thanx for the reply. I wondered about the ; after as well however when I removed it nothing worked!! It was like that when I downloaded it... strange.............
Cx