Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > problem

Reply
Thread Tools

problem

 
 
Mikael Hellström
Guest
Posts: n/a
 
      10-06-2003
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>



 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      10-06-2003
http://www.aspfaq.com/5001

Ray at home

"Mikael Hellström" <(E-Mail Removed)> wrote in message
news:FMagb.31762$(E-Mail Removed)...
> Hi all...
> I hava a problem . This pice of code (menu) works well with ie but
> don't work with netscape 6.2 .. why?



 
Reply With Quote
 
 
 
 
WIlliam Morris
Guest
Posts: n/a
 
      10-06-2003
Your code is fine. You stated the problem when you said "Netscape"

Also http://www.aspfaq.com/5001


--
William Morris
Product Development, Seritas LLC

"Mikael Hellström" <(E-Mail Removed)> wrote in message
news:FMagb.31762$(E-Mail Removed)...
> 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>
>
>
>



 
Reply With Quote
 
Dave Anderson
Guest
Posts: n/a
 
      10-06-2003
"WIlliam Morris" wrote:
>
> 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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem problem problem :( Need Help Mike ASP General 2 05-11-2004 08:36 AM



Advertisments