Dogfish: (PHP) Navigation öffnet Seite in neuem Fenster statt im frame

Beitrag lesen

Hallo ihr da draußen,

<?php  $link = file("links");  for($i = 0; $i < count($link); $i = $i + 2)  {   $linktitel[count($linktitel)] = str_replace("\n","",$link[$i]);   $linkpfad[count($linkpfad)] = str_replace("\n","",$link[$i+1]);  }  $countername = "temp";  $titel = "navigate";  if($QUERY_STRING == "")  {   $QUERY_STRING = 0;         }  $zusatz = "  <script language = "JavaScript" type = "text/javascript"><!--   parent.frames[1].window.location.href = "../".urldecode($linkpfad[$QUERY_STRING])."";         //--></script>";  $zusatz.="  <style type = "text/css">   td   {    background:   url(../navigate/Grafiken/button.png);   }   td:hover   {    background:   url(../navigate/Grafiken/button_over.png);   }  </style>  ";  require("../all/head.php"); ?>  <body>   <font size = "+1">    <table border = "0"> <?php  for ($i=0;$i<$QUERY_STRING;$i++)  { ?>     <tr>      <td height = "48" width = "195">       <center>        <a class = "green" name = "<?=$linktitel[$i]?>" href = "index.php?<?=$i?>" onmouseover = "hover('<?=$linktitel[$i]?>');" onmouseout = "unhover();" onClick = "Status = newStatus" title = "<?=$linktitel[$i]?>"> <?php  print "\t\t\t\t\t\t\t\t{$linktitel[$i]}\n"; ?>        </a>                                                 </center>             </td>     </tr> <?php  } ?>     <tr>      <td onmouseover = "this.style.background = 'Grafiken/button_over.png';" height = "48" width = "195">       <center> <?php  print "\t\t\t\t\t\t\t\t{$linktitel[$i]}\n"; ?>                                                 </center>             </td>     </tr> <?php  $i++;  for ($i;$i<count($linkpfad);$i++)  { ?>     <tr>      <td onmouseover = "this.style.background = 'Grafiken/button_over.png';" height = "48" width = "195">       <center>        <a class = "green" name = "<?=$linktitel[$i]?>" href = "index.php?<?=$i?>" onmouseover = "hover('<?=$linktitel[$i]?>');" onmouseout = "unhover();" onClick = "Status = newStatus" title = "<?=$linktitel[$i]?>"> <?php  print "\t\t\t\t\t\t\t\t{$linktitel[$i]}\n"; ?>        </a>                                                 </center>             </td>     </tr> <?php  } ?>    </table>   </font>  </body> </html>

Das ist jetzt vielleicht ein wenig unübersichtlich. Erklärungen: Ich habe eine Datei namens links, in der stehen alle links drinnen. Noch eine Datei namens ../all/head.php, in der stehen alle Header-Informationen drin. Wenn ich die Seite mit QUERY_STRING = 0 öffne, sieht der HTML-Kot so aus:

<!-- /* --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html>  <head>   <title>    navigate Copyright © 2002 by Candid Dauth                 </title>   <link rel = "shortcut icon" href = "../all/../favicon.ico" type = "text/ico">   <script language = "JavaScript" type = "text/javascript" src = "../all/Hover.php">   </script>   <script language = "JavaScript" type = "text/javascript">   <!--    if(parent.text.window.location.href == "http://candid.localnet/navigate/")    {     parent.bottom.window.location.href = "../all/../unten/index.php?titel=navigate&adresse=/navigate/index.php";    }   //-->   </script>

<script language = "JavaScript" type = "text/javascript"><!--   parent.frames[1].window.location.href = "../welcome";         //--></script>  <style type = "text/css">   td   {    background:   url(../navigate/Grafiken/button.png);   }   td:hover   {    background:   url(../navigate/Grafiken/button_over.png);   }  </style>

<style type = "text/css"> <!-- / //-->    @font-face    {     font-family:   helv,helvetica,arial,sans-serif;     src:    url(../Sonstige/bnhrdmob.ttf);    }    font.Massstab    {     font-family:   helv,helvetica,arial,sans-serif;     color:    #0000FF;    }    body    {     scrollbar-track-color:  #FFFFC0;     scrollbar-shadow-color:   #FFFFC0;     scrollbar-highlight-color:   #FFFFC0;     scrollbar-darkshadow-color: #FFFFC0;     scrollbar-3d-light-color:   #000000;     background-attachment:  fixed;     scrollbar-face-color:   #000064;     margin-left:   5px;     color:    black;     background:   #FFFFC0;     font-family:   helv,helvetica,arial,sans-serif;     scrollbar-arrow-color:   #FFFFC0;     scrollbar-base-color:  #FFFFC0;     cursor:    url(../all/Grafiken/Cursor.png);    }    body.leiste1    {     color:    #FFFF00;     background:   url(../oben/Grafiken/bg1.png);     cursor:    url(../all/Grafiken/Cursor.png);     font-family:   helv,helvetica,arial,sans-serif;    }    body.leiste2    {     color:    #FFFF00;     background:   url(../unten/Grafiken/bg2.png);     cursor:    url(../all/Grafiken/Cursor.png);     font-family:   helv,helvetica,arial,sans-serif;    }    body.bgcolor    {     scrollbar-track-color:  #FFFFC0;     scrollbar-shadow-color:   #FFFFC0;     scrollbar-highlight-color:   #FFFFC0;     scrollbar-darkshadow-color: #FFFFC0;     scrollbar-3d-light-color:   #000000;     background-attachment:  fixed;     scrollbar-face-color:   #000064;     margin-left:   5px;     color:    black;     font-family:   helv,helvetica,arial,sans-serif;     scrollbar-arrow-color:   #FFFFC0;     scrollbar-base-color:  #FFFFC0;     cursor:    url(../all/Grafiken/Cursor.png);    }    a    {     color:    #FF0000;     text-decoration:   none;     cursor:    url(../all/Grafiken/Cursor.png);     font-family:   helv,helvetica,arial,sans-serif;    }    a.l    {     color:    #FF0000;     text-decoration:   none;     cursor:    url(../all/Grafiken/Cursor.png);     font-family:   helv,helvetica,arial,sans-serif;    }    a.green    {     color:    #00FF00;     text-decoration:   none;     cursor:    url(../all/Grafiken/Cursor.png);     font-family:   helv,helvetica,arial,sans-serif;    }    a.darkgreen    {     color:    green;     text-decoration:   none;     cursor:    url(../all/Grafiken/Cursor.png);     font-family:   helv,helvetica,arial,sans-serif;    }    a:hover    {     color:    #9080FF;     text-decoration:   underline overline blink;     cursor:    url(../all/Grafiken/Cursor.png);     font-family:   helv,helvetica,arial,sans-serif;    }    img    {     color:    #000000;     cursor:    url(../all/Grafiken/no.gif);     border:    none;    }    textarea    {     color:    #000000;     background:   #FFFFC0;     font-family:   helv,helvetica,arial,sans-serif;     cursor:    url(../all/Grafiken/Cursor.png);    }    /***************************************************************************************/

Fortsetzung in der Antwort...