problem

  • Thread starter Mikael Hellström
  • Start date
M

Mikael Hellström

Hi all...
I hava a problem . This pice of code (menu) works well with ie but
don't work with netscape 6.2 .. why?
Please tell me how i can get this to work.
My site have the adress http://www.hyresbytet.se
Regards Mikael (Newbie)

<html>

<head>
<meta http-equiv="Content-Language" content="sv">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>huvudmeny</title>

<style>
..buttonshow {position:relative; left:6px}
..buttonhide {display:none}
A {text-decoration:none; font-family: Verdana; font-size:9px}
</style>


<base target="mainFrame">


</head>

<body text="#000000" link="#000000" vlink="#000000" alink="#FF0000"
background="BILDER/MENYBG.GIF">
<div align="left">
<script language="javascript" runat="server">

function buttoncont(what) {
if (eval(what).style.display=='none')
{
document.all.one.style.display='none';
document.all.two.style.display='none';
document.all.three.style.display='none';
document.all.four.style.display='none';
document.all.five.style.display='none';
document.all.six.style.display='none';
eval(what).style.display='';
}
else
eval(what).style.display='none';
}


</script>
<br>
<a href="http://www.microsoft.com/windows/ie_intl/sv/" target="_New"><img
src="./BILDER/InternetExplorer.jpg" width="118" height="44" border="0"></a>
<br>
</div>
<center>
<table border=0 cellspacing=0 cellpadding=0 marginwidth="0"
marginheight="0" align=left height="135">
<tr colspan=3>
<td colspan="3" valign="top" height="10"><img
src="./bilder/search_top2.gif" width="120" height="13" border="0"
alt=""></td>
</tr>
<tr width="319">
<td align="right" valign="top"
background="./bilder/search_greypix.gif" height="93"><img
src="./bilder/search_greypix.gif" width="2" height="1" border="0"
alt=""></td>
<td bgcolor="#FFFFFF" height="93" align="center" valign="top">
<table border="0" width="105" cellspacing="0" cellpadding="1"
align="left">
<tr>
<td valign="top" width="8">&nbsp; </td>
<td valign="top" bgcolor="#FFFFFF" width="96">
<div align="center"><img border="0" src="bilder/meny/btn1.gif"
onClick="buttoncont('six');" vspace="2" width="103" height="19"><br>
</div>
<div id="six" style="display:none"> <img style="position:
absolute; top: 76px; left:113px" src="bilder/meny/down.gif" width="5"
height="5">
<a href="rules.html">Privatannonser</a><br>
<a href="compRules.html">Företagsannonser</a><br>
</div>
<div align="center"><img border="0" src="bilder/meny/btn2.gif"
onClick="buttoncont('two');" vspace="2" width="103" height="19"><br>
</div>
<div id="two" style="display:none"> <img style="position:
absolute; top: 99px; left:113px" src="bilder/meny/down.gif" width="5"
height="5"><a href="searchResult.asp" target="mainFrame">
Till sökmotor</a><br>
</div>
<div align="center"><img border="0" src="bilder/meny/btn3.gif"
onClick="buttoncont('three');" vspace="2" width="103" height="19"><br>
</div>
<div id="three" style="display:none"> <img style="position:
absolute; top: 122px; left:113px" src="bilder/meny/down.gif" width="5"
height="5">
<a href="questions.html">Vanliga frågor</a><br>
</div>
<div align="center"><img border="0" src="bilder/meny/btn4.gif"
onClick="buttoncont('four');" vspace="2" width="103" height="19"><br>
</div>
<div id="four" style="display:none"> <img style="position:
absolute; top: 145px; left:113px" src="bilder/meny/down.gif" width="5"
height="5">
<a href="kontakt.html">kontakta oss</a><br>
</div>
<div align="center"><img border="0" src="bilder/meny/btn5.gif"
onClick="buttoncont('five');" vspace="2" width="103" height="19"><br>
</div>
<div id="five" style="display:none"> <img style="position:
absolute; top: 168px; left:113px" src="bilder/meny/down.gif" width="5"
height="5">
<a href="loggain.asp">logga in / Meny</a><br>
</div>
<div align="center"><a href="index.html" target="_top"><img
border="0" src="bilder/meny/btn6.gif" vspace="2" width="103"
height="19"></a><br>
</div>
<div id="one" style="display:none"> </div>
</td>
</tr>
</table>
</td>
<td align="right" valign="top"
background="./bilder/search_greypix.gif" witdh=2 height="93"><img
src="./bilder/search_greypix.gif" width="2" height="1" border="0"
alt=""></td>
</tr>
<tr colspan=3>
<td valign="top" colspan=3 height="33"><img
src="./bilder/search_bottom2.gif" width="120" height="9" border="0"
alt=""></td>
</tr>
</table>
</center>


</body>

</html>
 
D

Dave Anderson

WIlliam Morris said:
Your code is fine.

That's certainly open to debate. It's loaded with MS proprietary references
for which there are perfectly acceptable standards-based alternatives.
You stated the problem when you said "Netscape"

More to the point, when he used [document.all]. That automatically excluded
every non-MS browser, Netscape included.

Some of us would sooner commit Seppuku than use document.all. To each his
own.



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top