Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-10-2004, 06:34 PM   PM User | #1
booboo209
New to the CF scene

 
Join Date: Oct 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
booboo209 is an unknown quantity at this point
IE and Mozilla difficulties

ok i wrote my menu code and u gave it style in a css file but the menu doesnt expand in IE only in MZ. i included both my .css txt and my html txt so people can tell me if i did a boo boo
Attached Files
File Type: txt html.txt (1.6 KB, 151 views)
File Type: txt dropmenu.txt (678 Bytes, 145 views)
booboo209 is offline   Reply With Quote
Old 10-10-2004, 07:35 PM   PM User | #2
gsnedders
Senior Coder

 
gsnedders's Avatar
 
Join Date: Jan 2004
Posts: 2,340
Thanks: 1
Thanked 7 Times in 7 Posts
gsnedders will become famous soon enough
Bugs in IE, only way to get around is to use Javascript...
__________________
Geoffrey Sneddon
gsnedders is offline   Reply With Quote
Old 10-10-2004, 07:41 PM   PM User | #3
booboo209
New to the CF scene

 
Join Date: Oct 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
booboo209 is an unknown quantity at this point
i did try java script i used this "startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace»
(" over", "");
}
}
}
}
}
window.onload=startList;
and linked it with "<ul id="nav">"
booboo209 is offline   Reply With Quote
Old 10-10-2004, 07:54 PM   PM User | #4
gsnedders
Senior Coder

 
gsnedders's Avatar
 
Join Date: Jan 2004
Posts: 2,340
Thanks: 1
Thanked 7 Times in 7 Posts
gsnedders will become famous soon enough
You don't link Javascript in CSS
__________________
Geoffrey Sneddon
gsnedders is offline   Reply With Quote
Old 10-10-2004, 08:01 PM   PM User | #5
booboo209
New to the CF scene

 
Join Date: Oct 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
booboo209 is an unknown quantity at this point
oo my bad then umm is there any way you could help me with my java then and getting it to work in IE bc mozilla wont play the sound i have on it but IE does but then again IE doesnt do my drop menu correct and MZ does.. but yea could u mabe take a look at it and tell me where i went wrong im new
booboo209 is offline   Reply With Quote
Old 10-10-2004, 08:13 PM   PM User | #6
gsnedders
Senior Coder

 
gsnedders's Avatar
 
Join Date: Jan 2004
Posts: 2,340
Thanks: 1
Thanked 7 Times in 7 Posts
gsnedders will become famous soon enough
In the head of your (X)HTML document put this:
Code:
<!--[if IE]>
<script type="text/javascript">
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace»
(" over", "");
}
}
}
}
</script>
<![endif]-->
__________________
Geoffrey Sneddon
gsnedders is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:39 AM.


Advertisement
Log in to turn off these ads.