Вот, есть три таблицы - слева, справа и по центру. В табличке слева карта сайта, справа всякие там сведения, а вот в табличке по центру должен появляться текст в зависимости от загружаемой страницы. Оно бы несложно сделать текст статическим для каждой страницы, но суть в том, что у меня "облик" каждой страницы - т.е. заголовок, карта, сведения, оформление - записан в ОДНОМ файле, который затем я подключаю к каждой другой странице с помощью require_once. А вот как сделать так, чтобы текст, особый для каждой страницы, появлялся в центральной таблице, а не снизу? Если надо, то вот html-код моего сайта:
| Код | <html> <style type="text/css"> .main_title { font-family: Courier, Impact, Arial; font-size: 20px; font-weight: bold; } .map_title { font-family: Monotype Corsiva, Impact, Times New Roman; font-weight: bold; font-size: 30px; } .links { font-family: Impact, Arial; } .other_table { border-width: 5px; border-style: groove; border-color: red; } .main_table { border-width: 0px; width: 100%; } </style> <table width="100%"> <tr><td><img src="title.jpg"></img></td></tr> </table> <table class="main_table"> <tr><td valign=top width="19%"> <table class="other_table" width="100%"> <tr><td class="map_title"><u>Карта сайта</u></td></tr> <tr><td style="text-indent: 48px"><a class="links" href="http://guitarist.onu.ru/index.php">На главную</a></td></tr> <tr><td style="text-indent: 31px"><a class="links" href="http://guitarist.onu.ru/history.php">История гитары</a></td></tr> <tr><td style="text-indent: 22px"><a class="links" href="http://guitarist.onu.ru/ustrojstvo.php">Устройство гитары</a></td></tr> <tr><td style="text-indent: 17px"><a class="links" href="http://guitarist.onu.ru/nastrojka.php">Настраиваем гитару</a></td></tr> <tr><td style="text-indent: 22px"><a class="links" href="http://guitarist.onu.ru/ssylki.php">Полезные ссылки</a></td></tr> <tr><td style="text-indent: 45px"><a class="links" href="http://guitarist.onu.ru/sovety.php">Мои советы</a></td></tr> <tr><td style="text-indent: 58px"><a class="links" href="http://guitarist.onu.ru/aboutme.php">Обо мне</a></td></tr> <tr><td style="text-indent: 39px"><a class="links" href="http://deluxe.onu.ru">Форум DeLuxe</a></td></tr> <tr><td style="text-indent: 34px"><a class="links" href="http://guitarist.onu.ru/myguestbook.php">Гостевая книга</a></td></tr> <tr><td style="text-indent: 48px"><a class="links" href="http://guitarist.onu.ru/news.php">Новшества</a></td></tr> </table> </td><td valign=top width="60%"> <table width="100%" class="other_table"> <tr><td><p>ТУТ ДОЛЖЕН БЫТЬ ТЕКСТ ДЛЯ КАЖДОЙ СТРАНИЦЫ СВОЙ!</p></td></tr> </table> </td><td valign=top> <table class="other_table"> <tr><td>Сегодня <b>такое-то число.</b><hr></td></tr> <tr><td>Вы зашли на эту страницу ровно в <b>столько-то.</b><hr></td></tr> </table> </td></tr> </table>
|
Вот, текст каждой страницы особый, и он должен появляться вместо слов "ТУТ ДОЛЖЕН БЫТЬ...". Задача понятна? Прошу подсказать ее решение! И желательно без фреймов, поскольку я в них пока не разбираюсь. |