Avatar billede addy Nybegynder
22. august 2001 - 17:46 Der er 3 kommentarer og
1 løsning

Udvidet Java menu

Hej er der nogen der kan finde en fejl i nedenstående script?
Den siger at isNS4 ikke er defineret men det mener jeg den er i starten af koden!
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"DTD/xhtml1-transitional.dtd\">
<html>
<head>
<title>Altmuligt.com - Alt hvad du &oslash;nsker!!!</title>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
<style>
<title>phpMyAdmin</title>
    <base target=\"phpmain\" />

    <!-- Collapsible tables list scripts -->
    <script type=\"text/javascript\" language=\"javascript1.2\">
    <!--
    var isDOM      = (typeof(document.getElementsByTagName) != \'undefined\') ? 1 : 0;
    var isIE4      = ((typeof(document.all) != \'undefined\') && (parseInt(navigator.appVersion) >= 4)) ? 1 : 0;
    var isNS4      = (typeof(document.layers) != \'undefined\') ? 1 : 0;
    var capable    = (isDOM || isIE4 || isNS4) ? 1 : 0;
    // Uggly fix for Konqueror and Opera that are not fully DOM compliant
    if (capable && typeof(navigator.userAgent) != \'undefined\') {
        var browserName = \' \' + navigator.userAgent.toLowerCase();
        if (browserName.indexOf(\'opera\') > 0 || browserName.indexOf(\'konqueror\') > 0) {
            capable = 0;
        }
    }
    var fontFamily = \'verdana, helvetica, arial, geneva, sans-serif\';
    var isServer  = true;
    //-->
    </script>
    <script src=\"left.js\" type=\"text/javascript\" language=\"javascript1.2\"></script>
    <noscript>
        <style type=\"text/css\">
        <!--
        div {color: #000000}
        .heada {font-family: verdana, helvetica, arial, geneva, sans-serif; font-size: 10pt}
        .parent {font-family: verdana, helvetica, arial, geneva, sans-serif; color: #000000; text-decoration: none}
        .child {font-family: verdana, helvetica, arial, geneva, sans-serif; font-size: 8pt; color: #333399; text-decoration: none}
        .item, .item:active, .item:hover, .tblItem, .tblItem:active {color: #333399; text-decoration: none}
        .tblItem:hover {color: #FF0000; text-decoration: underline}
        //-->
        </style>
 

    <style type=\"text/css\">
    <!--
    body {font-family: verdana, helvetica, arial, geneva, sans-serif; font-size: 10pt}
    //-->
    </style>
   
 
<!--
  A {
    color:#009966;
    border-width:0 0 3px 0;
    border-style:solid;
    border-color:red;
    text-decoration:none;
}
-->

</head>

<body bgcolor=\"#FFFFFF\">
<table width=\"753\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
  <tr>
    <td valign=\"top\" height=\"105\" colspan=\"2\" bgcolor=\"#FFCC33\">&nbsp;</td>
    <td width=\"12\" valign=\"top\" bgcolor=\"#FFFFFF\" height=\"105\">
      <div align=\"center\"><font color=\"#996699\"><b><font color=\"#00CC99\"><br>
        </font></b></font></div>
    </td>
    <td width=\"171\" rowspan=\"2\" valign=\"top\" bgcolor=\"#336699\">
      <form name=\"login\" method=\"post\" action=\"login.asp\">
        <div align=\"center\"><font color=\"#00CCCC\">Medlem?</font> </div>
        <div align=\"center\">
          <table width=\"83%\" border=\"0\" height=\"52\">
            <tr>
              <td width=\"53%\">Brugernavn:</td>
              <td width=\"47%\">
                <input type=\"text\" name=\"user\" size=\"10\" maxlength=\"20\" style=\"border: 0px; border-color: \'#336699\'; background-color: \'#ffffff\';\" accesskey=\"s\">
              </td>
            </tr>
            <tr>
              <td width=\"53%\" height=\"8\">Password:</td>
              <td width=\"47%\" height=\"8\">
                <input type=\"text\" name=\"password\" size=\"10\" maxlength=\"20\" style=\"border: 0px; border-color: \'#336699\'; background-color: \'#ffffff\';\" accesskey=\"s\">
              </td>
            </tr>
          </table>
          <input type=\"submit\" name=\"login\" value=\"Login\">
        </div>
      </form>
    </td>
  </tr>
  <tr>
    <td width=\"135\" height=\"2\"></td>
    <td width=\"435\" height=\"2\"></td>
    <td height=\"2\"></td>
  </tr>
  <tr>
    <td height=\"21\" colspan=\"4\" valign=\"top\">&nbsp;</td>
  </tr>
  <tr>
    <td height=\"478\" valign=\"top\" bgcolor=\"#339900\">
      <!-- Link to the welcome page -->
      <div id=\"el1Parent\" class=\"parent\" style=\"margin-bottom: 5px\"> <a class=\"item\" href=\"main.php?server=1&lang=da\">
        <font color=\"black\" class=\"heada\"><b>Menu:</b></font></a> </div>
      <!-- Databases and tables list -->
      <div id=\"el2Parent\" class=\"parent\"> <img name=\"imEx\" src=\"images/minus.gif\" border=\"0\" width=\"9\" height=\"9\" />
        <a class=\"item\" href=\"http:\\\\www.altmuligt.com\" onClick=\"expandBase(\'el2\', false);\">
        <font color=\"black\" class=\"heada\">Snabel</font></a> </div>
      <div id=\"el2Child\" class=\"child\" style=\"margin-bottom: 5px\"> </div>
      <div id=\"el3Parent\" class=\"parent\"> <a class=\"item\" href=\"10.0.0.2\" onClick=\"expandBase(\'el3\', true); return false;\">
        <img name=\"imEx\" id=\"el3Img\" src=\"images/plus.gif\" border=\"0\" width=\"9\" height=\"9\" alt=\"+\" /></a>
        <a class=\"item\" href=\"http:\\\\www.altmuligt.com\" onClick=\"expandBase(\'el3\', false);\">
        <font color=\"black\" class=\"heada\">Altmuligt.com</font></a> </div>
      <div id=\"el3Child\" class=\"child\" style=\"margin-bottom: 5px\"> <nobr><img src=\"images/spacer.gif\" border=\"0\" width=\"9\" height=\"9\" alt=\"\" />
        <a href=\"/chat\"> <img src=\"images/browse.gif\" border=\"0\" alt=\"Vis: columns_priv\" /></a>&nbsp;
        <a class=\"tblItem\" target=\"phpmain\" href=\"10.0.0.2/chat\"> Chat</a></nobr><br />
        <nobr><img src=\"images/spacer.gif\" border=\"0\" width=\"9\" height=\"9\" alt=\"\" />
        <a href=\"/webmail\"> <img src=\"images/browse.gif\" border=\"0\" alt=\"Vis: db\" /></a>&nbsp;
        <a class=\"tblItem\" target=\"phpmain\" href=\"10.0.0.2/webmail\"> Webmail</a></nobr><br />
        <nobr><img src=\"images/spacer.gif\" border=\"0\" width=\"9\" height=\"9\" alt=\"\" />
        <a target=\"phpmain\" href=\"sql.php?server=1&lang=da&db=mysql&table=host&sql_query=SELECT+%2A+FROM+host&pos=0&goto=tbl_properties.php\">
        <img src=\"images/browse.gif\" border=\"0\" alt=\"Vis: host\" /></a>&nbsp; <a class=\"tblItem\" target=\"phpmain\" href=\"tbl_properties.php?server=1&lang=da&db=mysql&table=host\">
        host</a></nobr><br />
        <nobr><img src=\"images/spacer.gif\" border=\"0\" width=\"9\" height=\"9\" alt=\"\" />
        <a target=\"phpmain\" href=\"sql.php?server=1&lang=da&db=mysql&table=tables_priv&sql_query=SELECT+%2A+FROM+tables_priv&pos=0&goto=tbl_properties.php\">
        <img src=\"images/browse.gif\" border=\"0\" alt=\"Vis: tables_priv\" /></a>&nbsp;
        <a class=\"tblItem\" target=\"phpmain\" href=\"tbl_properties.php?server=1&lang=da&db=mysql&table=tables_priv\">
        tables_priv</a></nobr><br />
        <nobr><img src=\"images/spacer.gif\" border=\"0\" width=\"9\" height=\"9\" alt=\"\" />
        <a target=\"phpmain\" href=\"sql.php?server=1&lang=da&db=mysql&table=user&sql_query=SELECT+%2A+FROM+user&pos=0&goto=tbl_properties.php\">
        <img src=\"images/browse.gif\" border=\"0\" alt=\"Vis: user\" /></a>&nbsp; <a class=\"tblItem\" target=\"phpmain\" href=\"tbl_properties.php?server=1&lang=da&db=mysql&table=user\">
        user</a></nobr><br />
      </div>
      <div id=\"el4Parent\" class=\"parent\"> <img name=\"imEx\" src=\"images/minus.gif\" border=\"0\" width=\"9\" height=\"9\" />
        <a class=\"item\" href=\"db_details.php?server=1&lang=da&db=test\" onClick=\"expandBase(\'el4\', false);\">
        <font color=\"black\" class=\"heada\">test</font></a> </div>
      <div id=\"el4Child\" class=\"child\" style=\"margin-bottom: 5px\"> </div>
      <!-- Arrange collapsible/expandable db list at startup -->
      <script type=\"text/javascript\" language=\"javascript1.2\">
    <!--
    if (isNS4) {
      firstEl  = \'el1Parent\';
      firstInd = nsGetIndex(firstEl);
      nsShowAll();
      nsArrangeList();
    }
    expandedDb = \'\';
    //-->
    </script>
    <td></td>
    <td></td>
    <td></td>
  </tr>
</table>
</body>
</html>
Avatar billede roenving Novice
22. august 2001 - 17:55 #1
Hvad laver den style og ekstra title

<style>
<title>phpMyAdmin</title>
   
lige før base target og scriptet ???-]

hth
jes
Avatar billede roenving Novice
22. august 2001 - 17:59 #2
Og der er også hele denne sektion, som vist spænder ben for sig selv og hinanden:

    <noscript>
        <style type=\"text/css\">
        <!--
        div {color: #000000}
        .heada {font-family: verdana, helvetica, arial, geneva, sans-serif; font-size: 10pt}
        .parent {font-family: verdana, helvetica, arial, geneva, sans-serif; color: #000000; text-decoration: none}
        .child {font-family: verdana, helvetica, arial, geneva, sans-serif; font-size: 8pt; color: #333399; text-decoration: none}
        .item, .item:active, .item:hover, .tblItem, .tblItem:active {color: #333399; text-decoration: none}
        .tblItem:hover {color: #FF0000; text-decoration: underline}
        //-->
        </style>
 

    <style type=\"text/css\">
    <!--
    body {font-family: verdana, helvetica, arial, geneva, sans-serif; font-size: 10pt}
    //-->
    </style>
   
 
<!--
  A {
    color:#009966;
    border-width:0 0 3px 0;
    border-style:solid;
    border-color:red;
    text-decoration:none;
}
-->

Gør det til:

        <style type=\"text/css\">
        <!--
        div {color: #000000}
        .heada {font-family: verdana, helvetica, arial, geneva, sans-serif; font-size: 10pt}
        .parent {font-family: verdana, helvetica, arial, geneva, sans-serif; color: #000000; text-decoration: none}
        .child {font-family: verdana, helvetica, arial, geneva, sans-serif; font-size: 8pt; color: #333399; text-decoration: none}
        .item, .item:active, .item:hover, .tblItem, .tblItem:active {color: #333399; text-decoration: none}
        .tblItem:hover {color: #FF0000; text-decoration: underline}
 

    body {font-family: verdana, helvetica, arial, geneva, sans-serif; font-size: 10pt}
   
 
  A {
    color:#009966;
    border-width:0 0 3px 0;
    border-style:solid;
    border-color:red;
    text-decoration:none;
}
-->
    </style>
 
;-)
Avatar billede roenving Novice
22. august 2001 - 19:38 #3
Takker for points <=;·}
Avatar billede addy Nybegynder
22. august 2001 - 23:00 #4
Så lidt!!
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester