HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Alternative to Frames to keep part of the page stationary
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
Germz



Joined: 26 Feb 2005
Posts: 1
Location: Chicago

PostPosted: Sat Feb 26, 2005 3:16 pm     Alternative to Frames to keep part of the page stationary Reply with quote

I'm trying to avoid frames if possible. What are alternatives I can use to keep parts of the page stationary? (like a list of links or the heading info)
Thanks, I appreciate the help.
chrisxkelley



Joined: 07 Dec 2004
Posts: 246

PostPosted: Sun Feb 27, 2005 7:29 pm     Reply with quote

you could try using an iframe. its pretty much a table that you import an html page into. you can have scrolling and links that bring up other pages in that iframe
Code:

<iframe src="page.html" name="myframe" width="300" height="500">Sorry, your browser does not support iframes. Please click this link to get a real browser: <a href="http://mozilla.org/products/firefox">[link]</a></iframe>

there ya go. give the frame a source, a name, dimensions. Inside the <iframe> and </iframe> tags, you write what you want to appear if the user's browser does not support iframes. In this one, I put a link to download mozilla firefox.

if you want to have a page appear in your iframe from a link, use it like you would frames. just tell the target of the <a> tag to be the name you gave the iframe. example:
Code:

<a href="otherpage.html" target="myframe">link</a>


easy enough, right? iframes are like the new frames, sorta. a lot easier to work with
degsy



Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK

PostPosted: Mon Feb 28, 2005 8:47 am     Reply with quote

You have a few options apart from frames.

In simple HTML terms create a template page with your static content.
Everytime you want to create a new page start from this template.

You could code the links into javascript and include the script on every page.


The best way would be to use includes. If you don't have PHP then you could use SSI.

I would recommend that you see if you can use PHP.
You can then create pages such as headers or navbars and include them into other pages.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial