Log in

View Full Version : Changing the banner on all the pages



BloomFreak
03-02-2007, 10:31 PM
Is there a code I can use so I can change the banner on all the pages at the same time?? Cause I know the code to change the layout on all the pages at the same time. And its a time saver. So I want to do it with the banner. Is there a way??

is there a way to put in here:

http://www.freewebs.com/orlibloomworld/obwlayout.css

Thanks :D

BLiZZaRD
03-03-2007, 12:14 AM
Depends on the variables...

How do you have your banners loaded now? What about them do you want to change?

For example if it is the whole thing you want to change, why not make a new banner with the same dimensions and save it as the same name as the old one, overwrite when you upload?

Bad example I know, but you get the idea.

And yes, from what I remember you can do this with .htaccess and maybe php as well.

BloomFreak
03-03-2007, 12:55 AM
this is how my banner is now
http://www.freewebs.com/orlibloomworld/OrlandoBloomWorld.html

Yes I want to change the whole thing. :)

BloomFreak
03-03-2007, 06:26 PM
Any one?? :(

BloomFreak
03-17-2007, 09:44 PM
Ok can some one please give me the code if they know it?? I REALLY NEED IT :( :confused: :confused:

jscheuer1
03-17-2007, 10:18 PM
Your links are not coming up at the moment so I cannot say anything about your specific layout and style.

However, to answer your original question in a general way, yes. There is a way to change banners with a single change to a css stylesheet, if the banner can be the background image to a division:


div#banner {
width:250px; /*set to width of banner*/
height:100px; /*set to banner height*/
background-image:url('path/filename.jpg');
}

Then you can have a division on each page:


<div id="banner"></div>

and it will show the banner configured in the style section. If you need a linked banner and the link would change along with the image used, then you will probably be best off using a server side include. Javascript could do this too but is less reliable as, not everyone has javascript enabled. If javascript is used, a default banner could be made available to those folks surfing without javascript.

BloomFreak
03-17-2007, 11:02 PM
Oh none of the pages work cause ive deleted them. :p

thanks :)

GhettoT
03-18-2007, 08:33 AM
Another way you could do this is with PHP. In a file caled header.php

say something like,


<?php
echo "<img src=".../../.../whatever.jpg" />" ;
?>

Then in all your files add a


<?php
include 'header.php' ;
?>

and voila! A more in depth explination can be found here, http://www.dynamicdrive.com/forums/showthread.php?t=18044