You are here: Best way to use a header include file? « HTML « IT news, forums, messages
Best way to use a header include file?

Posted by John Dalberg on 09/20/05 05:43

I created a header file to be included in every webpage. The header file
has images that have a path to an "images" folder off the root folder.
However if I use this header file for web pages that reside in subfolders,
I have to change the path of all the image links to '../images/' instead of
'images/'.

What's the best way to have a single header file which *any* web page,
regardless of its location, can use without modifying it to suit certain
webpages depending on their location?

--
John Dalberg

 

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

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