Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 01-11-2005, 07:19 AM   #1 (permalink)
 
Newb Techie

Join Date: Jan 2005

Posts: 7

Karls Software

Default Header and Footers

can some one please help me with the HTML to create headers and footers on a website?

Thanks
Karls Software is offline  
Old 01-11-2005, 09:13 AM   #2 (permalink)
 
Monster Techie

Join Date: May 2004

Location: /usr/root/mn/us

Posts: 1,121

bla!! is on a distinguished road

Default

Do you mean like a frame on the top and bottom? Could you show an example of what you want on another webpage?

Headers and footers are generally something associated with text documents, not webpages.
__________________
<br>
Its a frigging Laptop, not a Labtop!!!!
bla!! is offline  
Old 01-11-2005, 09:39 AM   #3 (permalink)
 
Newb Techie

Join Date: Jan 2005

Posts: 7

Karls Software

Default

well, what i want is my page to put another page at the top of the page as a header.
Karls Software is offline  
Old 01-11-2005, 10:52 AM   #4 (permalink)
 
Monster Techie

Join Date: May 2004

Location: /usr/root/mn/us

Posts: 1,121

bla!! is on a distinguished road

Default

ohh, that's called a frame.

Depending on what program you're using to develop the page, they have different WYSIWYG ways of doing it, but if you'd like the html code for it, take a look at any of the pages here.

HTML Frames Tutorials
__________________
<br>
Its a frigging Laptop, not a Labtop!!!!
bla!! is offline  
Old 01-11-2005, 12:19 PM   #5 (permalink)
 
Newb Techie

Join Date: Jan 2005

Posts: 7

Karls Software

Default

i don't want frame
Karls Software is offline  
Old 01-11-2005, 02:49 PM   #6 (permalink)
 
Monster Techie

Join Date: May 2004

Location: /usr/root/mn/us

Posts: 1,121

bla!! is on a distinguished road

Default

Show an example of what you want and I'll bet someone can help you with how to create it.
__________________
<br>
Its a frigging Laptop, not a Labtop!!!!
bla!! is offline  
Old 01-12-2005, 05:39 AM   #7 (permalink)
 
Newb Techie

Join Date: Jan 2005

Posts: 7

Karls Software

Default

i am not sure, take a shopping website for an example they have the same banner type thing thought the website that is what i am trying to do. do you know what i mean?
Karls Software is offline  
Old 01-14-2005, 08:02 AM   #8 (permalink)
 
Junior Techie

Join Date: Dec 2004

Posts: 88

developer

Default

Yup. That came be done by making it an external file that is included in the HTML.
Like in ASP we write where in filename we give name of files. The file's HTML code is copied to that position as it is. So put an img tag in that file and include that file.

Similar approach exists in PHP and ASP.NET

In ASP.net we make a file with .ascx extension and its included by registering it as a control. In this case the code is not placed as it is and this page can even have a seperate script ( ASP.NET pages have a single script for the entire page)
__________________
Somewhere I Belong...
developer is offline  
Old 01-14-2005, 09:17 AM   #9 (permalink)
 
Newb Techie

Join Date: Jan 2005

Posts: 7

Karls Software

Default

i am still not sure what you mean, i have been working on an HTML page that has but that doesn't work. can you please explain more or send me to a weblink ... thanks for your time
Karls Software is offline  
Old 01-16-2005, 12:22 AM   #10 (permalink)
 
Junior Techie

Join Date: Dec 2004

Posts: 88

developer

Default

It wont work on HTML pages. Its supported by ASP.
This is an ASP directive.
in ASP.net we have supposingly header.ascx then we first

<%@ Register TagPrefix="Abc" TagName="Header" Src="includes/header.ascx" %>

then in the body where we want to place the include file
<Abc:Header ID="myHeader" Runat="Server"/>
These work only on server side scripts like ASP, ASP.net, PHP, JSP etc. These are compiled before being displayed by the server. Like the forum is n PHP and if view the source you will see plain HTML. The PHP was compiled and all such directives converted to routine HTML.
__________________
Somewhere I Belong...
developer is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On