Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Referencing external files ?

Status
Not open for further replies.

J741

Technical User
Jul 3, 2001
528
CA
I know that CSS code can be used in an HTML document by referencing an external .CSS file, and I know that JavaScript code can be used in an HTML document by referencing an external .JS file. Can this also be applied to the HTML content?

Basically what I want to do is to create a dynamic, animated banner and menu system, and use it at the top of any new page I create.

Right now, I know I can do this by using frames, and having the banner and menu in a top frame, and then loading the bottom frame with whatever page I want. This is fairly simple, but not very elegant.

I can also do this by copying the banner and menu code into each and every new page I create, but this seems like a reduntant waste of time, and a nightmare to edit in the future.

Can anyone suggest a more elegant way to do this?

- James.


My memory is not as good as it should be, and neither is my memory.

I have forgotten more than I can remember
 
You can attached an include file in your code and make it work.
For example <!--#include file="includes/file1.jpg"-->

A good programmer is someone who looks both ways before crossing a one-way street. - Doug Linder
 
Excelent. Just what I was looking for. Thanks.

- James.

My memory is not as good as it should be, and neither is my memory.

I have forgotten more than I can remember
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top