Click to See Complete Forum and Search --> : iframes + Main Banner


icydelight
08-05-2004, 06:19 PM
Hi. I'm renewing my site want to make it more
fancy. I have a main banner that I want to always
remain there and have my new page information appear in
a iframe.On the main banner appears menu choices.
When I choose my menu item it opens up a new page.

1. Can I have it just change the iframe and not have to force a new window?

2. How can maximize my work. If I change something on my main banner
i don't want to have to go and change all the different pages.
I need a practical way to do this.

Here's my project www.luctrudel.net/main.html

Please help

soapbath
08-05-2004, 09:03 PM
2. How can maximize my work. If I change something on my main banner
i don't want to have to go and change all the different pages. I need a practical way to do this.

Its taken from something for menus but can very very easly be changed for something like a banner.

Fed up of updating the menu on everypage everytime you want to add something new to your menu? Why why not just use one menu for all the pages on yourwebsite, this can be done by using The Include Function. Without understanding much the PHP, you can save yourself alot of time with the use of the PHP include function. Save all files that use anything on this page as .php!!

First of all create your menu page (Do it in a Wysiwyg if you want)

<a href="index.php">Linkname</a> -
<a href="about.php">Linkname</a> -
<a href="links.php">Linkname</a> -
<a href="contact.php">Linkname</a>

And then save as menu.html or menu.inc its up to you.

Now on your main page where you want the menu to apper type

<?php include("menu.html"); ?> (or <?php include("menu.inc"); ?>)

Add that to all the pages and every new page you create, maybe keep it noted down in a world document so you can
just copy and paste it. You will find out how much time and effot that takes you! include basicly just takes the data from
another page and inserts it where ever you insert <?php include("whatever.html"); ?>, it can also be used to incude a php
file. More about <?php include another time.

icydelight
08-05-2004, 10:20 PM
I will try this. Looks like this is exactly what I was looking for.

Thank you very much

icydelight
08-07-2004, 10:49 AM
Hi! When attempting this php miracle
I noticed it didn't let me preview my page
until I had uploaded on my web-werver.
I read up on Php and it says it's a server side
application or something like it. Can I install php on my computer at home to be able to preview php pages?

Luc

icydelight
08-07-2004, 01:29 PM
Some pages open up in original window,while others open in a new window. What's behind this?
I would like to have it open in original window when you go
from page to page.

Is the php making this happen?

Luc

IncaWarrior
08-07-2004, 01:32 PM
It should be in the same window, the include will make part of the page be cached in the users computer so it'll load about the same.

PHP is a pain to install on your computer, I would stick to uploading every time you want to preview and just have a test directory