 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
Germz
Joined: 26 Feb 2005 Posts: 1 Location: Chicago
|
Posted: Sat Feb 26, 2005 3:16 pm Alternative to Frames to keep part of the page stationary |
|
|
|
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
|
Posted: Sun Feb 27, 2005 7:29 pm |
|
|
|
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
|
Posted: Mon Feb 28, 2005 8:47 am |
|
|
|
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. |
|
|
|
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
|
|
|
|
|
 |
|
|
|
|
|
|
|