Forums Archive Index > SmartMenus v4.x General > Smartmenus not working in IE 6
Date: 1 Mar 2003 9:17 pm
Hi my smartmenus menu works in opera and netscape, but not in IE 6.
below is my script:
/* USE WORDWRAP AND MAXIMIZE THE WINDOW TO SEE THIS FILE
=================================
SmartMenus v4.7 Script ARRAYS
=================================
Get the menus with a great manual & examples at:
--> http://www.smartmenus.org
LEAVE THESE NOTES PLEASE - delete the comments if you want */
// === 1 === EXTRAS
s_hideTimeout=500;//1000=1 second
s_subMenuOffsetX=3;//pixels (if no subs, leave as you like)
s_subMenuOffsetY=2;
s_useSubImages=true;//globally- control in every STYLESHEET array is available
s_showLinkCursor=true;//IE4+, NS6+, Opera7+ & Konqueror
s_statusShowLinks=true;
s_keepHighlighted=true;
s_autoSELECTED=false;//make the item linking to the current page SELECTED
s_autoSELECTEDItemsClickable=false;//look at IMPORTANT NOTES 1 in the Manual
// === 2 === Default TARGET for all the links
/*for navigation to frame, calling functions or
different target for any link look at
IMPORTANT HOWTOS 1 NOTES in the Manual*/
s_target='self'//(newWindow, self or top)
// === 3 === STYLESHEETS- you can define different arrays and then asign
// them to any menu you want with the s_add() function
s_CSS1=[
'#2F4F4F', // BorderColor
'#000000', // BgColor
'#A9A9A9', // OverBgColor
'#A9A9A9', // FontColor
'#FFFFFF', // OverFontColor
'verdana,arial,helvetica,sans-serif', // FontFamily
'10px', // FontSize (css)
'1', // Netscape4 FontSize (look at KNOWN BUGS 3 in the Manual)
'bold', // FontWeight (bold/normal)
3, // ItemPadding
1, // BorderWidth
'revealtrans(duration=0.5,transition=0,wipeStyle=1)', // IEfilter (look at Samples\IE4(5.5)Filters dirs)
'http://www.gatesofkrynn.com/Script/images/arrow.gif', // ArrowImageSource
'http://www.gatesofkrynn.com/Script/images/arrowover.gif', // OverArrowImageSource
7, // ArrowImageSize
5, // ArrowImageTop px (pixels from item top)
true, // ArrowImageIsVisible
true, // UseSeparators (border between items)
'#8A8CCC', // SELECTED BgColor
'#FFFFFF', // SELECTED FontColor
'http://www.gatesofkrynn.com/Script/images/arrowover.gif' // SELECTED ArrowImageSource
];
s_CSS2=['#ff0000','#fffbf0','#bebddf','#ff0000','#ff0000','verdana,arial,helvetica,sans-serif','12px','2','normal',5,2,'','../images/arrow2.gif','../images/arrow2.gif',7,8,false,false,'#C0C0C0','#FFFFFF','../images/arrowover.gif'];
s_CSS3=['#000000','#ffffff','#000000','#000000','#ffffff','verdana,arial,helvetica,sans-serif','10px','1','bold',3,1,'','../images/arrow3.gif','../images/arrowover.gif',7,5,true,false,'#C0C0C0','#FFFFFF','../images/arrowover.gif'];
// === 4 === MENU DEFINITIONS
//s_add(
//'search', // NAME
//1, // LEVEL (look at IMPORTANT NOTES 1 in the Manual)
//130, // WIDTH
//15, // TOP (look at IMPORTANT HOWTOS 4 in the Manual)
//0, // LEFT (look at IMPORTANT HOWTOS 4 in the Manual)
//false, // menu is PERMANENT (you can only set true if this is LEVEL 1 menu)
//s_CSS1, // Stylesheet Array to use for this menu
//[ // define the items [link info,text to display]
//['http://www.google.com/','Google'],
//['http://www.yahoo.com/','Yahoo!'],
//['http://www.altavista.com/','Altavista'],
//['http://www.search.com/','CNET Search.com'],
//['http://www.webcrawler.com/','Webcrawler'],
//['http://www.lycos.com/','Lycos'],
//['http://www.hotbot.com/','Hotbot']
//]
//);
s_add(
'GoK_Info',1,130,102,100,false,s_CSS1,
[
['http://www.gatesofkrynn.com/about.htm','About GoK'],
['http://www.gatesofkrynn.com/news.htm','GoK News'],
['show:bg_admins','Administrators'],
['show:bg_gms','Game Masters'],
['http://www.gatesofkrynn.com/beginning.htm','How it all Began']
]
);
s_add(
'Player_Info',1,130,102,200,false,s_CSS1,
[
['http://www.gatesofkrynn.com/character.htm','Character Creation Guide'],
['show:bg_races','Races'],
['show:bg_classes','Classes'],
['show:bg_gods','Gods of Krynn'],
['show:bg_factions','Factions'],
['show_bg_dl_info','Dragonlance Information'],
['http://www.gatesofkrynn.com/Skills/Skills.htm','Skill Information']
]
);
s_add(
'Misc',1,130,102,300,false,s_CSS1,
[
['show:bg_staff_section','Staff Section'],
['http://www.gatesofkrynn.com/phpBB2/index.php','Online Discussion'],
['telnet://www.jasrags.net:4000','Play the Game!'],
['http://www.gatesofkrynn.com/contact.htm','Contact the Staff'],
['http://www.gatesofkrynn.com/OGLicense.htm','Open Gaming License']
]
);
s_add(
'Links',1,148,102,400,false,s_CSS1,
[
['show:bg_dl_links','Dragonlance Links'],
['show:bg_general_mud_links','General MUD Links'],
['show:bg_mud_client_links','MUD Clients'],
['show:bg_affiliate_mud_links','Affiliate MUDs'],
['show:bg_d20_links','d20 System Links'],
]
);
s_add(
'bg_admins',2,130,'','',false,s_CSS1,
[
['http://www.gatesofkrynn.com/Staff/elcid.htm','El Cid'],
['http://www.gatesofkrynn.com/Staff/gicker.htm','Gicker'],
['http://www.gatesofkrynn.com/Staff/jasrags.htm','Jasrags'],
['http://www.gatesofkrynn.com/Staff/slair.htm','Slair']
]
);
s_add(
'bg_gms',2,130,'','',false,s_CSS1,
[
['http://www.gatesofkrynn.com/Staff/amonkes.htm','AmonKes'],
['http://www.gatesofkrynn.com/Staff/ketryn.htm','Ketryn'],
['http://www.gatesofkrynn.com/Staff/kvanik.htm','Kvanik'],
['http://www.gatesofkrynn.com/Staff/nemrac.htm','Nemrac'],
['http://www.gatesofkrynn.com/Staff/robane.htm','Robane'],
['http://www.gatesofkrynn.com/Staff/xergon.htm','Xergon']
]
);
s_add(
'bg_races',2,130,'','',false,s_CSS1,
[
['http://www.gatesofkrynn.com/Races/Dwarves.htm','Dwarves'],
['http://www.gatesofkrynn.com/Races/Blank_Race.htm','Draconians'],
['http://www.gatesofkrynn.com/Races/Elves.htm','Elves'],
['http://www.gatesofkrynn.com/Races/Gnomes.htm','Gnomes'],
['http://www.gatesofkrynn.com/Races/Blank_Race.htm','Goblins'],
['http://www.gatesofkrynn.com/Races/Half_Elves.htm','Half-Elves'],
['http://www.gatesofkrynn.com/Races/Humans.htm','Humans'],
['*newWindow*http://www.dl3e.com/rules/display.asp?id=11065','Kender'],
['*newWindow*http://www.dl3e.com/rules/display.asp?id=11066','Minotaurs'],
['http://www.gatesofkrynn.com/Races/Blank_Race.htm','Ogres']
]
);
s_add(
'bg_classes',2,130,'','',false,s_CSS1,
[
['show:bg_basic_classes','Basic Classes'],
['show:bg_prestige_classes','Prestige Classes']
]
);
s_add(
'bg_basic_classes',3,130,'','',false,s_CSS1,
[
['http://www.gatesofkrynn.com/Classes/Barbarian.htm','Barbarian'],
['http://www.gatesofkrynn.com/Classes/Bard.htm','Bard'],
['http://www.gatesofkrynn.com/Classes/Cleric.htm','Cleric'],
['http://www.gatesofkrynn.com/Classes/Druid.htm','Druid'],
['http://www.gatesofkrynn.com/Classes/Fighter.htm','Fighter'],
['http://www.gatesofkrynn.com/Classes/Monk.htm','Monk'],
['http://www.gatesofkrynn.com/Classes/Paladin.htm','Paladin'],
['http://www.gatesofkrynn.com/Classes/Ranger.htm','Ranger'],
['http://www.gatesofkrynn.com/Classes/Rogue.htm','Rogue'],
['http://www.gatesofkrynn.com/Classes/Sorcerer.htm','Sorcerer'],
['http://www.gatesofkrynn.com/Classes/Wizard.htm','Wizard']
]
);
s_add(
'bg_prestige_classes',3,130,'','',false,s_CSS1,
[
['http://www.gatesofkrynn.com/Classes/Arcane_Archer.htm','Arcane Archer'],
['http://www.gatesofkrynn.com/Classes/Assassin.htm','Assassin'],
['http://www.gatesofkrynn.com/Classes/Blackguard.htm','Blackguard'],
['http://www.gatesofkrynn.com/Classes/Dwarven_Defender.htm','Dwarven Defender'],
['*newWindow*http://www.dl3e.com/rules/display.asp?id=11131','Knight of the Crown'],
['*newWindow*http://www.dragonlance.com/taladas/nexus/takhisis.html','Knight of the Lily'],
['*newWindow*http://www.dl3e.com/rules/display.asp?id=11132','Knight of the Rose'],
['*newWindow*http://www.dragonlance.com/taladas/nexus/takhisis.html','Knight of the Skull'],
['*newWindow*http://www.dl3e.com/rules/display.asp?id=11133','Knight of the Sword'],
['*newWindow*http://www.dragonlance.com/taladas/nexus/takhisis.html','Knight of the Thorn'],
['http://www.gatesofkrynn.com/Classes/Loremaster.htm','Loremaster'],
['http://www.gatesofkrynn.com/Classes/Shadowdancer.htm','Shadowdancer'],
]
);
s_add(
'bg_gods',2,130,'','',false,s_CSS1,
[
['http://www.gatesofkrynn.com/godslight.htm','Gods of Light'],
['http://www.gatesofkrynn.com/godsgrey.htm','Gods of Balance'],
['http://www.gatesofkrynn.com/godsdarkness.htm','Gods of Darkness']
]
);
s_add(
'bg_factions',2,130,'','',false,s_CSS1,
[
['http://www.gatesofkrynn.com/conclave.htm','The Conclave of Wizards'],
['http://www.gatesofkrynn.com/kos.htm','The Knights of Solamnia'],
['http://www.gatesofkrynn.com/kot.htm','The Knights of Takhisis']
]
);
s_add(
'bg_dl_info',2,130,'','',false,s_CSS1,
[
['http://www.gatesofkrynn.com/bigmap.htm','Map of Ansalon'],
['http://www.gatesofkrynn.com/calander.htm','Ansalonian Calander'],
['http://www.gatesofkrynn.com/timeline.htm','Dragonlance Timeline']
]
);
s_add(
'bg_staff_section',2,130,'','',false,s_CSS1,
[
['*newWindow*http://www.gatesofkrynn.com/plrarea/','Online MUD Editors'],
['http://www.gatesofkrynn.com/immlogin.htm','Database Management']
]
);
s_add(
'bg_dl_links',2,130,'','',false,s_CSS1,
[
['*newWindow*http://www.dragonlance.com/','Dragonlance.com'],
['*newWindow*http://www.dl3e.com/','The Dragonlance Nexus']
]
);
s_add(
'bg_general_mud_links',2,130,'','',false,s_CSS1,
[
['*newWindow*http://www.mudconnect.com/','The MUD Connector'],
['*newWindow*http://www.angelfire.com/electronic2/gicker/MUD_Stats.html','TMC Dragonlance MUD Stats']
]
);
s_add(
'bg_mud_client_links',2,130,'','',false,s_CSS1,
[
['*newWindow*http://www.zuggsoft.com/','zMUD (Zuggsoft Software)']
]
);
s_add(
'bg_affiliate_mud_links',2,130,'','',false,s_CSS1,
[
['*newWindow*http://www.ageofdragons.com/','Age of Dragons'],
['*newWindow*http://ageoflegends.planetmud.com/','Age of Legends'],
['*newWindow*http://www.mudsanddragons.com/','Muds and Dragons']
]
);
s_add(
'bg_d20_links',2,130,'','',false,s_CSS1,
[
['*newWindow*http://www.wizards.com/D20/','WotC d20 System Website'],
['*newWindow*http://www.dl3e.com/','The Dragonlance Nexus'],
['*newWindow*http://www.mudsanddragons.com/','Muds and Dragons']
]
);
Date: 1 Mar 2003 9:21 pm
you can view the website at --> http://www.gatesofkrynn.com
Date: 1 Mar 2003 9:24 pm
A sample HTML source is below:
<!--TO SEE THE FILE BETTER USE WORDWRAP-->
<html>
<head>
<title>The Official "Gates of Krynn" Dragonlance MUD Web Page</title>
<script language=JavaScript>
function s_show(){return false}
function s_hide(){return false}
if(window.event+''=='undefined')event=0
</script>
<base target="contents">
</head>
<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=black vlink="#A9A9A9A" link="#A9A9A9A" alink="#A9A9A9" text=gray>
<script language=Javascript1.2 src="http://www.gatesofkrynn.com/Script/gok_newsbar.js"></script>
<script language=JavaScript1.2 src="http://www.gatesofkrynn.com/Script/s_loader.js"></script>
<script>fixNS4onWin=(document.layers&&navigator.platform.toLowerCase().indexOf("win")!=-1)?'11px':'10px';document.write("<style>.text{font:"+fixNS4onWin+" verdana,arial,sans-serif;color:#4A49A8}</style>")</script>
<!--SAMPLE HORIZONTAL TOOLBAR-->
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td align=center><img src="http://www.gatesofkrynn.com/images/gok3b.gif" height=60 width=468 border=0 vspace=10></td>
</tr>
<tr>
<td bgcolor=#00000 ><nobr><a href="http://www.gatesofkrynn.com/" Target=_self>
<img src="http://www.gatesofkrynn.com/Script/images/GoKMenu1.jpg" height=14 width=75 border=0></a><img src="http://www.gatesofkrynn.com/Script/images/GoKMenuS.jpg" height=14 width=25 border=0><a onmouseover=s_show('GoK_Info',event) onmouseout=s_hide() onlcick="location.reload()"><img src="http://www.gatesofkrynn.com/Script/images/GoKMenu2.jpg" height=14 width=75 border=0></a><img src="http://www.gatesofkrynn.com/Script/images/GoKMenuS.jpg" height=14 width=25 border=0><a onlcick="location.reload()" onmouseover=s_show('Player_Info',event) onmouseout=s_hide()><img src="http://www.gatesofkrynn.com/Script/images/GoKMenu3.jpg" height=14 width=75 border=0></a><img src="http://www.gatesofkrynn.com/Script/images/GoKMenuS.jpg" height = 14 width=25 border=0><a onlcick="location.reload()" onmouseover=s_show('Misc',event) onmouseout=s_hide()><img src="http://www.gatesofkrynn.com/Script/images/GoKMenu4.jpg" height=14 width=75 border=0</a><img src="http://www.gatesofkrynn.com/Script/images/GoKMenuS.jpg" height=14 width=25 border=0><a onlcick="location.reload()" onmouseover=s_show('Links',event) onmouseout=s_hide()><img src="http://www.gatesofkrynn.com/Script/images/GoKMenu5.jpg" height =14 width=75 border=0></a></nobr></td>
</tr>
</table>
<!-- INSERT ALL HTML CODE UNDER HERE -->
<p align="left">&</p>
<p align="left">Welcome all to Gates of Krynn, a Dragonlance MUD set right after
the War of the Souls which uses exclusively d20 System Rules. The MUD is still
under construction. Feel free to browse the webpage, take part in the online
discussion or create a character on the mud and play with what we've made so far
or just chat with whoever else is on. Until then...<br>
&</p>
<p align="center"><font color="#FF0000">*Gates of Krynn, Still under construction*</font></p>
<p align="center">&<!--WEBBOT bot="Script" startspan PREVIEW="Site Meter" -->
<p align=center>
<script type="text/javascript" language="JavaScript">var site="s12gatesofkrynn"</script>
<script type="text/javascript" language="JavaScript1.2" src="http://s12.sitemeter.com/js/counter.js?site=s12gatesofkrynn">
</script>
<noscript>
<a href="http://s12.sitemeter.com/stats.asp?site=s12gatesofkrynn" target="_top">
<img src="http://s12.sitemeter.com/meter.asp?site=s12gatesofkrynn" alt="Site Meter" border=0></a></noscript>
</p>
<!--Begin HTML Code-->
<div align="center"><map name="dlance">
<area shape="rect" coords="10,20,69,52" href="http://www.dragonlance.com/webring/go.cfm?nav=previous&id=114" alt="Previous Site" target="_top">
<area shape="rect" coords="348,20,389,52" href="http://www.dragonlance.com/webring/go.cfm?nav=next&id=114" alt="Next Site" target="_top">
<area shape="rect" coords="100,57,143,73" href="http://www.dragonlance.com/webring/go.cfm?nav=home&id=114" target="_top" alt="Home">
<area shape="rect" coords="174,57,229,73" href="http://www.dragonlance.com/webring/go.cfm?nav=random&id=114" alt="Random" target="_top">
<area shape="rect" coords="269,57,299,73" href="http://www.dragonlance.com/webring/go.cfm?nav=join&id=114" alt="Join" target="_top">
<area shape="rect" coords="80,10,330,55" href="http://www.dragonlance.com/webring/go.cfm?nav=home&id=114" alt="the Dragonlance Webring" target="_top"></map>
<img src="http://www.gatesofkrynn.com/images/queue.gif" border="0" width="405" height="75" align="absmiddle" vspace="2" hspace="2" alt="Dragonlance Webring Navigation Bar" usemap="#dlance"><br></div>
<!--End HTML Code-->
<!-- INSERT ALL HTML CODE ABOVE HERE -->
<p align=center><a href="http://www.smartmenus.org/" Target=_new>DHTML SmartMenus Power This Site.</a></p>
</body>
</html><!--webbot bot="Script" endspan i-checksum="4090" --></p>
Date: 1 Mar 2003 10:03 pm
Hi,
Just look at the "Links" and "bg_prestige_classes" menus in the menu definitions section of "s_arrays.js". You have a comma "," after the last menu item. Just delete it and it should work. Also check for other syntax errors if it doesn't work again.
Date: 1 Mar 2003 10:53 pm
That fixed it. Thanks a lot for the help and especially for the quick reply!
GREAT menu script man, best I've found.
Steve Squires
Date: 16 Jan 2005 12:25 pm
hi allen gicker here because gicker is not a comon name i wondered if we could have a comon relation if you know of your heartage please let me know @ igick{@}lsbg.net i live in leesburg fl usa thank you