/    Sign up×
Community /Pin to ProfileBookmark

Need some help with a menubar

Alright, so I have this wonderful menu on my webpage ([url]www.marconid.com[/url]) however it doesn’t work in IE. Works in FF, but not IE. I was told that I would need to implement some javascript to make it work, however I don’t know what to put where.

I’m still very, very new to javascript, so if you just want to tell me, that would be good, or if you knew some tutorials that would help me, that would be good to.

I tried to make it out of HTML and CSS as much as possible, since that is what I know and love. If it will help, here’s my CSS:

[code]
body {

background: #E8E8E8;
font: 16px Verdana, sans-serif;
}

body{
margin: 0px auto;
background-image: url(pictures/crackback.gif);
/* repeat-y will only repeat down the left side of the page */
background-repeat:repeat-y;
}
#left {
position: absolute;
width: 147px;
background-image: url(Pictures/crackback.gif);
float: left;
margin-right: 20px;
height: 100%;
}
#content{
margin: 0px 0px 0px 150px;
padding: 0 10px 10px;
}

#right {
width: 75%;
float: right;
}
a:link {color: #104E8B;
text-decoration: none;
background-color: transparent }
a:visited { color: #4169E1;
text-decoration: none;
background-color: transparent }
a:hover { color: #00066;
text-decoration: underline;
background-color: transparent }
a:active { color: #A9ACB6;
text-decoration: underline;
background-color: transparent }
.title { text-align: center}
.floaty {
float: right;
padding:5px;
}
td{
font: 12px Verdana, sans-serif;
border-right:1px solid #000000;
}
.tableend{
font: 14px Verdana, sans-serif;
border: none;
}
#good {
text-align:center;
}

#navlist
{
padding: 0 1px 1px;
font: bold 12px Verdana, sans-serif;
background: gray;
width: 146px
}

#navlist li
{
list-style: none;
margin: 0;
border-top: 1px solid gray;
text-align: left;
}

.photos {border: none;}

#navlist li a
{
display: block;
padding: 0.25em 0.5em 0.25em 0.8em;
border-left: 1em solid #AAB;
background: #CCD;
text-decoration: none;
}
img {
border: none;
}
#navlist li a:link { color: #448; }
#navlist li a:visited { color: #667; }
#navlist li a:hover
{
border-color: #000066;
color: #FFF;
background: #4169e1;
}
ul li {
position: relative;
}
li ul {
position: absolute;
left: 146px;
top: 0;
display: none;
}
ul li a {
display: block;
text-decoration: none;
color: #777;
background: #fff;
padding: 5px;
border: 1px solid #ccc;
border-bottom: 0;
}

ul {
margin: 0;
padding: 0;
list-style: none;
width: 146px;
border-bottom: 1px solid #ccc;
}
li:hover ul { display: block; }

#elaine
{
text-align: center;
width:169;
}

/* Fix IE. Hide from IE Mac */
* html ul li { float: left; }
* html ul li a { height: 1%; }
/* End */

[/code]

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@FangMar 15.2005 — [URL=http://www.howtocreate.co.uk/tutorials/testMenu.html]Pure css menus[/URL]
Copy linkTweet thisAlerts:
@kirby101authorMar 15.2005 — Ok... So, I think I get what's goin on with the javascript section of code, and it looks like its supposed to go into the CSS...

Am I thinking the right thing? And does it just go in as is? or what do I need to change to make it work?
Copy linkTweet thisAlerts:
@FangMar 16.2005 — Not quite, it's an included file for IE (behavior - IEmen.htc)
<!--[if gte IE 5]>
<style type="text/css">
ul.makeMenu li { behavior: url( IEmen.htc ); }
ul.makeMenu ul { display: none; position: absolute; top: 2px; left: 78px; }

ul.makeMenu2 li { behavior: url( IEmen2.htc ); }
ul.makeMenu2 ul { display: none; position: absolute; top: 2px; left: -160px; background-color: #aac; }
</style>
<![endif]-->
Copy linkTweet thisAlerts:
@kirby101authorMar 16.2005 — wait... I'm trying to test it in IE 6... do I need to change something? Or what?

Is there some of the code you posted that needs to be changed before it can be used? I just tried it in my CSS and it didn't work...

*STRESS!*

I wish I knew more about this...
×

Success!

Help @kirby101 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...