You are here: Re: How to display the same links in every page? « HTML « IT news, forums, messages
Re: How to display the same links in every page?

Posted by harry.michaels on 08/29/06 17:09

fraternitydisposal@gmail.com wrote:
> I'm making a personal site which contains links like home, resume,
> feedback, hobbies, links in every page. And i've managed to create an
> external css. How can i insert the said links in every page without
> copying and pasting the links in every page?
>
> My webhost doesn't support server side scripting. Can i store the links
> in an external file and insert them by client side scripting? Please
> help.

A safe option for you would be using iframes. Basically, you create an
external HTML file as you said, which only includes the links you want.
You can then insert the external page into your main page (and other
pages) using the following tag:

<iframe src="whatever.html" scrolling="no" frameborder="0" height=""
width=""></iframe>

Fill in the blanks and you're good to go. If you set scrolling to yes
and there is more content than can be displayed in the space you have
allocated, a scrollbar will be present. Frameborder removes the border
that appears by default. In regard to placement on the page etc., just
approach entering that code as you would with an image file. In terms
of occupying space on the page, it works the same way.

It's probably a good idea to have no page margins in the external HTML
file, if your CSS file doesn't handle that already. You can do this by
adjusting the <body> tag:

<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">

....as well as the other usual stuff that goes in there.

Harry Michaels

 

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

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