Auch wenn das jetzt eigentlich in die Kategorie "PHP" gehört hier mal ein Beispiel (Code nicht getestet):
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15: | <?php
function tabelle($text1, $text2, $bild1) {
$re = "<table width="100%" border="1">n";
$re .= " <tr>n";
$re .= " <td colspan="2">$text1</td>n";
$re .= " </tr>n";
$re .= " <tr>n";
$re .= " <td><img src="$bild1" border="0"></td>n";
$re .= " <td>$text2</td>n";
$re .= " </tr>n";
$re .= "</table>n";
return $re;
}
?>
|
Und dann in der Datei, wo du's anzeigen willst:
1:
2:
3:
4: | <?php
print tabelle("Webserver im Test", "I-Net4you hat super Service und super Angebote.n<br>Muss man einfach bestellen!", "./i-net4you.gif");
?>
|
So müsste es eigentlich funktionieren, aber ich bin mir nicht 100%ig sicher...
Chris1308