
April 23rd, 2004
08:28 PM
Dreamweaver Question
I am using Dreamweaver in the Studio MX version. I have created a homepage which is has become quite nice. Now, for the pages in rest of the site, i want to keep my banner in these pages. Together with some links.
What i mean is: Once one chooses a page to view, my banner is still in view, with my primary links in it (Contact, Home, etc) and watch the rest of the site beneath it.
How do i do that.
Help is much apreciated,
dude

April 24th, 2004
08:17 AM
loves kitties and cuddles
Status: Offline!
Frames aren't very accessible -- if you use one frame as a menu (or banner), and one frame as content, your users will have trouble bookmarking the actual frame they want to bookmark.
There's no easy way to do this, but you could just do a PHP include to include one file in each document, say, have the menu/banner in that file.
___________________
I've got a girlfriend! WOOT.

April 27th, 2004
11:23 AM
Originally posted by iJeff
There's no easy way to do this...
Really?
this isn't directly related to dw btw but anyway the simplest way would be to put the banner on every page and to open every link in the same window by writting
<a href ="page.html" target="_self"> here's your link </a>
or by choosing _self in the target box in the property window in dw if you're not coding your html tag by hand. I would even recommend you to use the hotspot tool in dw design mode to map your banner.
___________________

msn : genevievep2@hotmail.com

May 1st, 2004
07:29 AM
Site Reviewer
Status: Offline!
Two ways: Frames, or PHP include... uh that's all I know of. I think there's some DHTML stuff to do it, not sure.
___________________
-meh

May 1st, 2004
07:06 PM
thanks for all the replies. 
I would like to use the Frame, but my main problem on that is that i have to redo my whole page. OR do i???? 
If not, how do i???? Can anyone provide me tips on the frames?
PHP is a big mysterie to me. Coding 2.
Duderino ::chinese:

May 2nd, 2004
06:46 PM
Neverside Newbie
Status: Offline!
you can also use SSI, which is pretty easy:
include
Inserts the text of a specified document into the body of the current document. Is commonly used for including headers or footers in web pages.
<!--#include virtual="/dir/file.ext"-->
<!--#include file="subdir/file.ext"-->
Notes:
Do not leave any spaces between the equal ("=") sign and the file it specifies. Doing so will cause an error message to be displayed.
Any included file is subject to the usual access authorization controls.
If you use a domain name you must use the virtual command. file only works with WebCom URLs.
virtual
gives a virtual path to a document on the server. A normal file or another parsed document may be accessed using this tag. Please note that the path of this file name should be the URL of the file, with the domain name removed, and the userid added. For instance, if the URL of a file is "http://www.your-domain.com/products/footer.txt" and your userid is "userid" then the path to use with this include directive would be: "/userid/products/footer.txt"
Example: <!--#include virtual="/virtual_sample.txt"-->
This is a sample text file. It was included in this file by the include virtual tag:
<!--#include virtual="/webcom/virtual_sample.txt"-->.
This paragraph includes a hotlink, and tags such as bold and emphasis.
file
gives a pathname relative to the current directory. ../ cannot be used in this pathname, nor can absolute paths be used. (If you need to refer to a file in a higher directory, you might consider using virtual described above.) As above, you can send other parsed documents.
Example: <!--#include file="sample.txt"-->
This is a sample text file. It was included in this file by the include file tag: <!--#include file="sample.txt"-->.
This paragraph includes a hotlink, and tags such as bold and emphasis.
Extension: .shtml
(i.e. index.shtml)
or PHP Includes:
Are you tired of updating all your pages navigation everytime you add a new page or link? By using the PHP include() function you can make updating every page of your site a thing of the past.
1. The first thing you need to do is create a file named links.php. this will include all your links or whatever files you wish to include.
2. Open links.php and add your info or links to this page using normal html code.
3. Now create your index file name it index.php. In the index.php file use the php include function to include the links file:
include('links.php');
Using the include function you can cut your updating time in half by making the files that are updated frequently seperate from you pages.
Extension: .php
(i.e. index.php)
___________________

Originally posted by LadyFirelyght:
I'll be honest, I consider myself to be bi-sexual.

May 3rd, 2004
12:51 AM
Site Reviewer
Status: Offline!
What Darthy said. That's good. if you wanna use frames, then take everything from the banner or whatever, throw it in new page, and make that a frame. Then make a homepage for the other frame. You'll proably need some CSS to make it look good tho.
___________________
-meh

May 4th, 2004
07:38 PM
for my mind iframe is best possible solution for banner rotating script, main advantage that in case of banner script crash it wont affect whole page, web page page still be looking formatted ok and functional.
___________________
webhelpboard.com - resolving questions in less time.