• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Frame erstellen??

linkbart

Neues Mitglied
Hallo

Ich hätte eine frage und zwar möchte ich wenn ich einen Button klicke (Blaue Schrift im Code) eine html seite in den CONTENT (Rote Schrift im Code) Bereich laden(wo jetzt der Satz "Your Content here" steht). Ich denke da brauch ich einen Frame. Könnt ihr mir sagen wie genau ich das mache. Ich bearbeite meine Website mit Dreamweaver.
Danke für eure Hilfe
lg chris
Hier der Code:

Code:
<html>
<head>
<title>Untitled</title>
<meta name="description" content="Insert Description Here">
<meta name="keywords" content="Insert Keywords Here">
<style type="text/css">
<!--
a:link, a:active, a:visited {
color: #4A265A; 
text-decoration: underline}
a:hover {
color: #4A265A; 
text-decoration: none}
body {
background-image: URL(images/bg.gif);
background-repeat: repeat-x}
 
-->
</style>
</head>
<body bgcolor="#ffffff" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/your_logo.gif" width="215" height="105"></td>
<td><img src="images/mod_temp1_02.gif" width="265" height="105"></td>
<td><img src="images/mod_temp1_03.gif" width="300" height="105"></td>
</tr>
<tr>
<td colspan="3" background="images/bg_pg.gif" valign="top">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10">&nbsp;</td>
<td valign="top">
<!-- Side Panel -->
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="170" height="95">&nbsp;</td>
</tr>
<tr>
[COLOR=blue][B]<td><img src="images/link_1.gif" width="170" height="30" border="0" alt="link_1"></td>[/B][/COLOR]
</tr>
<tr>
<td><img src="images/link_2.gif" width="170" height="30" border="0" alt="link_2"></td>
</tr>
<tr>
<td><img src="images/link_3.gif" width="170" height="30" border="0" alt="link_3"></td>
</tr>
<tr>
<td><img src="images/link_4.gif" width="170" height="30" border="0" alt="link_4"></td>
</tr>
<tr>
<td><img src="images/link_5.gif" width="170" height="30" border="0" alt="link_5"></td>
</tr>
<tr>
<td><img src="images/link_6.gif" width="170" height="30" border="0" alt="link_6"></td>
</tr>
<tr>
<td width="170" height="214" valign="top"><br>
<blockquote>&nbsp;</blockquote></td>
</tr>
</table>
<!-- Side Panel --></td>
<td width="40">&nbsp;</td>
 
[COLOR=red]<td align="center" valign="top">[/COLOR]
[COLOR=red]<h1>[/COLOR]
[COLOR=red] <!-- Content -->[/COLOR]
[COLOR=red] <br>[/COLOR]
[COLOR=red] <br>[/COLOR]
[COLOR=red] <img src="images/hr_top.gif" width="528" height="58" border="0"></h1>[/COLOR]
[COLOR=red]<blockquote>[/COLOR]
[COLOR=red] <h1><font face="Arial" size="2" color="#000000"><strong>[/COLOR]
[COLOR=red] <img src="images/ballet_lg.gif" width="19" height="18" border="0">[/COLOR]
[COLOR=red]   [SIZE=5]Your Content here.[/SIZE][/COLOR]
[COLOR=red] <img src="images/ballet_lg.gif" width="19" height="18" border="0">[/COLOR]
[COLOR=red] </strong></font></h1>[/COLOR]
[COLOR=red]</blockquote>[/COLOR]
[COLOR=red]<h1><br>[/COLOR]
[COLOR=red]   <br>[/COLOR]
[COLOR=red]   <br>[/COLOR]
[COLOR=red]   <br>[/COLOR]
[COLOR=red]   <br>[/COLOR]
[COLOR=red]   <br>[/COLOR]
 
[COLOR=red]   <img src="images/hr_bot.gif" width="528" height="44" border="0">[/COLOR]
[COLOR=red] <!-- Content -->[/COLOR]
 
</h1></td>
</tr>
</table>
 
</td>
</tr>
</table>
</body>
</html>
 
Nein, du brauchst keinen Frame, genauso wenig wie du das Tabellenlayout brauchst.

Beides ist veraltet, Struktur und Inhalt macht man mit HTML, Design mit CSS.

Wenn du dann nicht immer eine neue Seite haben möchtest, kannst du das auch ebenso einfach über PHP machen, mit einem "PHP-case-switch", so nennt sich das glaub ich. Am besten du googlest es mal oder fragst im PHP-Bereich nach.


Greetz
Toast
 
Dreamwaver ist son komisches Programm, das einem n komischen Code zusammen schnipselt der aussieht wie hingekotet und von der Hälfte aller Browser nicht richtig interpretiert wird, oder?

Mach dir das Leben leichter und benutze sowas nicht.
Du wirst nur für deinen Quellcode belächelt werden, und lernst dabei auch nicht.


Wie Toastbroat schon sagte:
Tabellenlayout war ein mal, das gabs ganz früher vor gescheiten Frames und Divs,
das ist absolut Tabu, dafür wird dir jeder an die Gurgel gehn.

Frames sind für viele Suchmaschinen untauglich, und machen Seitenübergreifendes JS oder Dom fast unmachbar etc...



Html: Da du anscheinend kein html (kein gutes) beherrscht, würde ich dir Selfhtml empfehlen egal ob es veraltet ist, es ist immer noch das beste^^
 
Zurück
Oben