Ahhh
Ich hasse solche Sachen. Ich sitz jetzt 1 Stunde an so einem billigen Sch***! Nein echt das bringt mich noch zum Wahnsinn. Folgendes: Ich möchte auf der Page Werbung einblenden(per Zufallsscript mit php), darum einen 1px Rahmen machen und daneben ein kleines Bild "advert" einblenden. Der Banner ist normal 468*60 pixel gross. Aber es geht nicht! Wieso?? Oh mann unten bleibt immer Platz frei. --> siehe Anhang. Hier der code:
PHP-Code:
<table width="484" height="62" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="14" rowspan="3" align="center" valign="middle" height="62"><img src="images/advert.gif" width="14" height="60" alt="" /></td>
<td colspan="3" height="1" class="dunkel" width="470"><img src="images/spacer.gif" width="470" height="1" alt="" /></td>
</tr>
<tr>
<td width="1" height="60" class="dunkel"><img src="images/spacer.gif" width="1" height="60" alt="" /></td>
<td width="468" height="60">
<?php
$ad1 = "<a href=\"www.werbung.com\" target=\"_blank\" onmouseover=\"window.status='http://www.werbung.com';return true;\" onmouseout=\"window.status=' ';return true;\">
<img src=\"http://www.werbung.com/image-1384908-5367248\" width=\"468\" height=\"60\" alt=\"Save up to 70% on ....\" border=\"0\" /></a>";
$ad2 = "<a href=\"www.werbung2.com\" target=\"_blank\" onmouseover=\"window.status='http://www.werbung2.com';return true;\" onmouseout=\"window.status=' ';return true;\">
<img src=\"http://www.werbung2.com/image-1384908-5367248\" width=\"468\" height=\"60\" alt=\"Save up to 70% on ....\" border=\"0\" /></a>";
$ad3 = "<a href=\"www.werbung3.com\" target=\"_blank\" onmouseover=\"window.status='http://www.werbung3.com';return true;\" onmouseout=\"window.status=' ';return true;\">
<img src=\"http://www.werbung3.com/image-1384908-5367248\" width=\"468\" height=\"60\" alt=\"Save up to 70% on ....\" border=\"0\" /></a>";
$bilder = array($ad1, $ad2, $ad3);
mt_srand ((double)microtime()*1000000);
$zahl = mt_rand(0,(count($bilder) - 1));
echo($bilder[$zahl]);
?>
</td>
<td width="1" height="60" class="dunkel"><img src="images/spacer.gif" width="1" height="60" alt="" /></td>
</tr>
<tr>
<td colspan="3" height="1" class="dunkel" width="470"><img src="images/spacer.gif" width="470" height="1" alt="" /></td>
</tr>
</table>