[thelist] Page Check w/IE 4.x and 5.0
Richard Bennett
richard.bennett at skynet.be
Tue Feb 12 00:14:01 CST 2002
Hi,
'fraid not.
IE4 gives error:
Line 192
ms4Tag.length is not an object.
And it looks like you are just making life hard when it's not.
Use one <div> for your menubar, with separate items being <a href> tags.
Check-out Jeff's article on how best to use Javascript within the <a href>
tag.
And example of a menu I use is this:
<!-- navigation -->
<div style="width:100%">
<div class="nav">
<a href="/grit1.html" title="Main">[ Main ]</a>
[ Products ]
<a href="/technology/index.html" title="Technology">[
Technology ]</a>
<a href="/contact/index.html" title="Contact">[ Contact
]</a>
<a href="/demo/index.html" title="Demo">[ Demos ]</a>
</div>
<div class="subnav">
<!-- snip -->
</div>
</div>
And the stylesheet is:
<style>
div.nav{
border: solid #DC143C 2px;
background-color: #F6F6BB;
padding: .2em;
padding-top: 0em;
margin:0;
margin-left:1em;
color: #AAAAAA;
cursor:default;
font-weight: bold;
text-align: center;
width: 100%;
}
div.nav a{
text-decoration: none;
color: #DC143C;
}
div.nav a:hover{
color: #000080;
}
</style>
Like this the cursor is always correct, and it degrades nicely to all
browsers.
Cheers,
Richard.
----- Original Message -----
From: "Bill Bejeck" <bethbejeck at earthlink.net>
If some one has IE 4.x and 5.0 could you check
http://billb.his.com/mg_web.htm I have put in JS and tested for older
More information about the thelist
mailing list