Linkinhalt in bestimmter Tabelle anzeigen

  • geschlossen

  • KingstonTown
  • 1148 Aufrufe 6 Antworten

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Linkinhalt in bestimmter Tabelle anzeigen

    Ich bin gerade dabei ne Internetseite zu schreiben und die ist in verschiedene Tabellen unterteilt,nun möchte ich sagen wir mal die Links,die in Tabelle 1 stehen in Tabelle 4 angezeigt bekommen,kann man dass irgendwie einrichten?
  • neh er will sowas wie ne art frames...

    links (Tabellenzeile 1): Navigation mit einzelnen Links
    rechts (Tabellenzeile 4): Inhalt des "zuletzt-angeklickten" links

    würds folgendermaßen machen:

    HTML-Quellcode

    1. ....
    2. <body>
    3. ...
    4. <table>
    5. <tr>
    6. <td><a href="inhalt.htm" target="iframe">Link 1</a></td>
    7. <td></td>
    8. <td></td>
    9. <td><iframe name="iframe" src="inhalt_normal.htm" width="120" height="100"></td>
    10. </tr>
    11. </table>
    12. ...
    13. </body>
    14. </html>
    Alles anzeigen


    es gibt eine elegantere Art mit Hilfe von php... aba da du im html-bereich gepostet hast, geh ich davon aus, dass du eine html-loesung brauchst.

    ´gruß
    [size=1][FONT="Courier New"]###############_###_####_
    #_ __ #___ _ _| |_(_)__(_)__ _ _ _###############new uploads: [1] [2] [3] [4] [5] [6] [7] [8]
    |#'##\/ _ \ '_|##_| / _| / _` | ' \
    |_|_|_\___/_|##\__|_\__|_\__,_|_||_|###############Bis 28. Sept. weg[/FONT][/size]
  • Hallo,

    mir ist es eigentlich egal ob dass Problem per HTML oder PHP gelöst wird....

    Habe mal hier den Code,links stehen die LINKS,die recht immer in der WILLKOMMENS TABELLE angezeigt werden soll.

    HTML-Quellcode

    1. <?xml version="1.0" encoding="iso-8859-1"?>
    2. <html xmlns="http://www.w3.org/1999/xhtml">
    3. <head>
    4. <title>TEST</title>
    5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    6. <script language="JavaScript" type="text/JavaScript">
    7. <!--
    8. function MM_reloadPage(init) { //reloads the window if Nav4 resized
    9. if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    10. document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
    11. else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    12. }
    13. MM_reloadPage(true);
    14. //-->
    15. </script>
    16. </head>
    17. <STYLE type=text/css>
    18. BODY {
    19. SCROLLBAR-FACE-COLOR: #000000; SCROLLBAR-HIGHLIGHT-COLOR: #000000;
    20. SCROLLBAR-SHADOW-COLOR: #333333; SCROLLBAR-3DLIGHT-COLOR: #2e425a;
    21. SCROLLBAR-ARROW-COLOR: #006699; SCROLLBAR-TRACK-COLOR: #000000;
    22. SCROLLBAR-DARKSHADOW-COLOR: #000000; BACKGROUND-COLOR: #000000
    23. }
    24. A:link {
    25. COLOR: #006699; TEXT-DECORATION: none
    26. }
    27. A:active {
    28. COLOR: #006699; TEXT-DECORATION: none
    29. }
    30. A:visited {
    31. COLOR: #006699; TEXT-DECORATION: none
    32. }
    33. A:hover {
    34. COLOR:#666666; TEXT-DECORATION: underline
    35. }
    36. </STYLE>
    37. <body bgcolor="#000000" text="#FFFFFF" link="#006699" vlink="#006699" alink="#006699">
    38. <table width="772" border="0" cellpadding="0" cellspacing="0">
    39. <!--DWLayoutTable-->
    40. <tr>
    41. <td width="772" height="115" valign="top"><img src="TEST.gif" width="700" height="111" /></td>
    42. </tr>
    43. </table>
    44. <table width="773" border="0" cellpadding="0" cellspacing="0">
    45. <!--DWLayoutDefaultTable-->
    46. <tr>
    47. <td width="186" rowspan="3" valign="top"><table width="88%" border="1" align="center" bordercolor="#FF0000">
    48. <tr>
    49. <td bgcolor="#003366"><font color="#FFFFFF" size="1" face="tahoma, arial"><strong>.:
    50. Navigation :.</strong></font></td>
    51. </tr>
    52. <tr>
    53. <td height="40"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
    54. <a href="test.htm">-Home</a><br />
    55. <a href="#">-News</a> <br />
    56. <a href="#">-Termine "Treffen"</a><br />
    57. <a href="#">-Termine "Messen"</a><br />
    58. <a href="#">-Car Gallery</a> <br />
    59. <a href="#">-Member Gallery</a><br />
    60. <a href="#">-Dicke Dinger,Heiße Kurven</a> <br />
    61. <a href="#">-Abe´s & Teilegutachten</a> <br />
    62. <a href="#">-Über Mich</a> <br />
    63. </font></td>
    64. </tr>
    65. </table>
    66. <br /> <table width="88%" border="1" align="center" bordercolor="#FF0000">
    67. <tr>
    68. <td bgcolor="#003366"><font color="#FFFFFF" size="1" face="tahoma, arial"><strong>.:
    69. Mein VR6 Umbau :.</strong></font></td>
    70. </tr>
    71. <tr>
    72. <td height="40"><p align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
    73. <a href="#">-VR6 Motordaten</a> <br />
    74. <a href="#">-Bilder vom Umbau</a><br />
    75. <a href="#">-Geplante Umbauten </a><br />
    76. </font></p>
    77. </td>
    78. </tr>
    79. </table>
    80. <br /> <table width="88%" border="1" align="center" bordercolor="#FF0000">
    81. <tr>
    82. <td bgcolor="#003366"><font color="#FFFFFF" size="1" face="tahoma, arial"><strong>.:
    83. Sonstiges :.</strong></font></td>
    84. </tr>
    85. <tr>
    86. <td height="40"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
    87. <a href="#">-Sponsoren</a> <br />
    88. <a href="#">-Partner</a><br />
    89. <a href="#">-Links</a><br />
    90. <a href="#">-Downloads</a> <br />
    91. </font></td>
    92. </tr>
    93. </table></td>
    94. <td width="587" height="335" valign="top"><table width="95%" height="329" border="1" align="center" bordercolor="#FF0000">
    95. <tr>
    96. <td height="20" bgcolor="#003366">
    97. <div align="center"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>Willkommen</strong></font></div></td>
    98. </tr>
    99. <tr>
    100. <td height="301"> <font size="1" face="Verdana, Arial, Helvetica, sans-serif">
    101. <p>
    102. Was gibt es hier zu sehen ? <br>
    103. <p>
    104. <li>Bilder von meinem Golf3 VR6 Umbau<br>
    105. <li>ABE´s & Teilegutachten zum downloaden,oder die Seiten,wo ihr Sie herbekommt<br>
    106. <li>Car Gallery
    107. <li>Temine für Treffen und Messen etc.
    108. <li>Dicke Dinger,heiße Kurven ( <--- Die Rubrik kam übrigens von meiner Süßen <img src="http://www.my-smileys.de/smileys3/00000985kelly.gif"> )
    109. <li>Technische Daten über Motor etc.
    110. <li>Sponsoren
    111. <li>Partner
    112. <li>Links zu weiteren Hilfreichen Seiten
    113. <p>
    114. <u>Kontakt</u><p>
    115. ICQ: <br>
    116. MSN: <br>
    117. Skype: <br>
    118. E-Mail: <br>
    119. <p>
    120. </font></td>
    121. </tr>
    122. </table></td>
    123. </tr>
    124. <tr>
    125. <td height="167" valign="top"><table width="84%" height="115" border="1" align="center" bordercolor="#FF0000">
    126. <tr>
    127. <td height="18"><div align="center"><font color="#FFFFFF" size="1" face="tahoma, arial"><strong>News</strong></font></div></td>
    128. </tr>
    129. <tr>
    130. <td><p><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
    131. <li><b>26.12.2006 </b><br>
    132. Heute bin ich auf die Idee gekommen,mal eine Homepage über mich und meinen Umbau zu machen.
    133. </font></p>
    134. <p>&nbsp;</p></td>
    135. </tr>
    136. </table></td>
    137. </tr>
    138. <tr>
    139. <td height="19"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">&copy;
    140. 2003 yoursite.com design by <a href="http://www.enhancedesign.tk" target="_blank">enhancedesign</a></font></div></td>
    141. </tr>
    142. </table>
    143. </body>
    144. </html>
    Alles anzeigen


    @MORTI

    Danke dir,habe mir dass ganze nochmal angeschaut und habe jetzt raus wie es geht :)
  • die HTML-Lösung wäre,
    kopiere deine test.htm in news.htm, ändere da deinen Text in der Wilkommens-Tabelle entsprechend dem, was bei news stehen soll. Anschließend noch im Menü den Link auf news.htm setzten, weiter gehts, test.htm in blubblub.htm kopieren, Text in der Wilkommens-Tabelle entsprechend ändern, usw. usf.

    Alternativ kannst du dir bei selfhtml das Thema Frames anschauen.
    Bei einem größeren Projekt oder dynamischem Inhalt würd ich dann aber doch eher zu einem fertigen CMS (joomla, drupal o.ä.) raten, oder du lernst PHP.

    @mortician
    neh er will sowas wie ne art frames
    deswegen hab ich den link zu selfhtml gepostet.
    Hast du deinen Post editiert? Hab in der Benachrichtigungsmail noch etwas mehr von deinem Beispielcode stehen.

    EDIT:
    zu lahm
    greetz
    localhorst