You are here: Re: Framesets « HTML « IT news, forums, messages
Re: Framesets

Posted by Jonathan N. Little on 05/06/06 19:14

Eric wrote:
> Adrienne Boswell wrote:
>
>> Gazing into my crystal ball I observed "Gregc." <gregchilton@bigpond.com>
>> writing in news:1146886285.129998.274630@e56g2000cwe.googlegroups.com:
>>
>>>> You pray eh? This alt.html is indeed a church.
>>>>
>>>> --
>>> The client insists on it. A list of web pages on the left side, and
>>> the display on the right side.
>>>
>>>
>> Then you need to educate your client. Frames almost _never_ have any
>> reason to be used.
>>
>> Use a server side include and CSS to get what you're after.
>>
> You anti-frames guys are always the same. You never show how and always
> reference links saying how bad the frames are that also dont show how.
> Why not show him directly how to make the same effect using your method?
> Post some code.
> Eric
>


##somepage.php:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>No Frames</title>

</head>
<body>
<?php include_once(navbar.php); ?>
<p>The rest of my page content...</p>
</body>
</html>

##navbar.php:

<div class="navbar">
<ul>
<li><a href="page1.php">Page 1</a></li>
<li><a href="page2.php">Page 2</a></li>
<li><a href="page3.php">Page 3</a></li>
<li><a href="page4.php">Page 4</a></li>
</ul>
</div>

Note for future enhancements:

Use an array or object for navigation links so that you can test for
what page you are currently on and either skip that link in your menu or
generate at as text and not a link to indicate that page you are on! Far
superior to frames.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация