problem

Discussion in 'ASP General' started by Mikael Hellström, Oct 6, 2003.

  1. 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>
     
    Mikael Hellström, Oct 6, 2003
    #1
    1. Advertising

  2. Mikael Hellström

    Ray at Guest

    http://www.aspfaq.com/5001

    Ray at home

    "Mikael Hellström" <> wrote in message
    news:FMagb.31762$...
    > Hi all...
    > I hava a problem . This pice of code (menu) works well with ie but
    > don't work with netscape 6.2 .. why?
     
    Ray at, Oct 6, 2003
    #2
    1. Advertising

  3. 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" <> wrote in message
    news:FMagb.31762$...
    > 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>
    >
    >
    >
     
    WIlliam Morris, Oct 6, 2003
    #3
  4. "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.
     
    Dave Anderson, Oct 7, 2003
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Suurkuusk
    Replies:
    0
    Views:
    4,030
    Andreas Suurkuusk
    Jul 27, 2003
  2. Ted Miller
    Replies:
    0
    Views:
    5,219
    Ted Miller
    Sep 13, 2003
  3. Merek
    Replies:
    0
    Views:
    2,001
    Merek
    Dec 3, 2003
  4. Scott Meddows
    Replies:
    1
    Views:
    421
    John Saunders
    Jun 8, 2004
  5. Mike

    Problem problem problem :( Need Help

    Mike, May 7, 2004, in forum: ASP General
    Replies:
    2
    Views:
    581
    Bullschmidt
    May 11, 2004
Loading...

Share This Page