Nav Bar/Frames - Plz help!!!

This is a discussion on "Nav Bar/Frames - Plz help!!!" within the Graphics and 3D section. This forum, and the thread "Nav Bar/Frames - Plz help!!! are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Graphics and 3D

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 13th, 2006, 23:42
New Member
Join Date: Jun 2006
Location: Portland
Age: 27
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow Nav Bar/Frames - Plz help!!!

Hi, I need to make a navigation bar for the top of every page on my site and I would like it if I could freeze the nav bar on top of the page even when a user scrolls down - is there anyway to do this without using frames? And if not, how do I make it look seamless while using frames? (Note: I am designing a site using Dreamweaver MX on a Mac). Any help would be MUCH appreciated!
Reply With Quote

  #2 (permalink)  
Old Jun 14th, 2006, 00:01
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: Nav Bar/Frames - Plz help!!!

You need to use server side includes such as php.

Basically you make the navigation in a seperate html file such as navbar.html

Then include the navbar.html file into the pages you want it in. That way you just have to edit the navbar.html file to make changes instead of editing every page.

The php include function is
Code: Select all
<?php include("navbar.html"); ?>
In order for this to work you must save the file your using this code in as a .php extension (example: index.php )
Reply With Quote
  #3 (permalink)  
Old Jun 14th, 2006, 16:26
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Nav Bar/Frames - Plz help!!!

There is a way to produce the effect you want using css but unfortunately it doesn't work cross browser, most notably not with IE. The method described below works in FF and Opera.

It involves using the 'position' attribute.

You would add these line to the style block for the header div.

position: fixed;
top: 0;
left: 0;

Note that you can use top, right, bottom and left attributes to fix an element at any point on the screen relative to the viewport.

Someone recently found a way of exploiting a bug in IE to achieve the same effect. Unfortunately I cannot find a link to his site otherwise I would have include it as well.
Reply With Quote
Reply

Tags
nav, barframes, plz, help

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
I want to use frames but know I shouldn't! mykl Website Planning 7 Oct 11th, 2007 18:40
Frames Help lithiumforce Starting Out 4 Jun 25th, 2007 10:39
Frames piratescotty Web Page Design 8 May 22nd, 2007 19:11
Frames Pointblank Web Page Design 7 Jan 27th, 2006 21:30
I need help with frames!!!! courtjester Web Page Design 2 Sep 20th, 2003 07:30


All times are GMT. The time now is 17:20.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43