Hiya,
I have two questions:
Where is the body tag defined? I'd like to add the following to it:
topmargin="0" leftmargin="0"
How to make proper header and footer includes?
I added this to the phpinclude_start template:
PHP Code:
ob_start();
require("/hsphere/local/home/wsjb78/notkeriana.ch/header_sub2.php");
$headercontent = ob_get_contents();
ob_end_clean();
ob_start();
require("/hsphere/local/home/wsjb78/notkeriana.ch/footer_sub2.php");
$footercontent = ob_get_contents();
ob_end_clean();
The content of header_sub2.php is this:
PHP Code:
<table width="100%" height=32 cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=150 nowrap background="/layout/violett1.jpg"><a class="topic" href="http://www.notkeriana.ch"><img src="/layout/avnkey32.gif" hspace=6 align=left border=0>
<font face=arial,sans-serif size=2><b>AV Notkeriana</b><br><i>
<i>online</i></a></td>
<td width=1 bgcolor="#eeeeee"><img src="/layout/0.gif" heigth=1 width=1></td>
<td width="*" nowrap background="/layout/violett1.jpg"><font face=arial,sans-serif size=2><b>
<a class="topic" href="/index.php">Startseite</a> | <a class="topic" href="/programm.php">Programm</a> | <a class="topic" href="/chargen.php">Komitée und Chargen</a> | <a class="topic" href="/mitglieder.php">Mitglieder</a> |
<a class="topic" href="/fotos">Fotoalbum</a> | <a class="topic" href="/stammbeiz.php">Stammbeiz</a> | <a class="topic" href="/guestbook/index.php"">Gästebuch</a> | <b><a class="topic" href="/notkerball/index.php"">Notkerball 2004</a></b> |
<a class="topic" href="/links/index.php">Links</a>
</td>
</tr>
</table>
and footer_sub2.php
PHP Code:
<table width="100%" cellpadding=2 cellspacing=0 border=0 background="/layout/violett1.jpg">
<tr background="/layout/violett1.jpg">
<td width=150 height=24 valign="middle"><font color="#807288">Updated: 3.April 2004</td>
<td width=107 valign=middle><a class="topic" href="http://verdi.unisg.ch/org/vereine/notker.nsf" target="_blank"><img align=left vspace=3
src="/layout/avn-link.gif" height=16 width=16 border=0><img src="/layout/0.gif" height=4 width=1 border=0><br>
Notker-DB</a></td>
<td width=107 valign=middle><a class="topic" href="mailto:hyper@notkeriana.ch"><img align=left vspace=3
src="/layout/avn-link.gif" height=16 width=16 border=0><img src="/layout/0.gif" height=4 width=1 border=0><br>
Webmaster</a></td>
<td width=107 valign=middle><a class="topic" href="mailto:avnotkeriana@unisg.ch"><img align=left vspace=3
src="/layout/avn-link.gif" height=16 width=16 border=0><img src="/layout/0.gif" height=4 width=1 border=0><br>
Kontakt</a></td>
<td width=107 valign=middle><a class="topic" href="http://www.notkeriana.ch/email.php" target="_blank"><img align=left vspace=3
src="/layout/avn-link.gif" height=16 width=16 border=0><img src="/layout/0.gif" height=4 width=1 border=0><br>
E-Mail</a></td>
<td width=107 valign=middle><a class="topic" href="http://www.notkeriana.ch"><img align=left vspace=3
src="/layout/avn-link.gif" height=16 width=16 border=0><img src="/layout/0.gif" height=4 width=1 border=0><br>
Sitemap</a></td>
</tr>
</table>
Then I added $headercontent at the top of the header template and added $footercontent before the copyright notice in the footer template.
In Opera both includes are being displayed properly, however in MSIE the footer include is missing the background graphics.
Anyone knows what that is?