Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
changing banner across entire site
Old 02-28-2008, 12:34 PM changing banner across entire site
missingtime's Avatar
Skilled Talker

Posts: 83
Location: Athens, Greece
Trades: 0
I'm new to this and I'm having a brain fart right now...

For some reason it completely escapes me now...how to change my banner across the entire site, on all pages. I mean...I don't want to open up every page and change it.

This is assuming that I don't want to change the name of the new banner to the name of the OLD banner.

Also, if I put three hot spots in the banner..but DON'T want to do that to every page that the banner sits on...what's the best approach?

Thank you.

Last edited by missingtime; 02-28-2008 at 01:01 PM..
missingtime is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-28-2008, 01:53 PM Re: changing banner across entire site
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
afraid it can't be done, unless you use frames (bad idea) or php include

i recommend php include.

For your banner do this.
Code:
<div class="banner">Whatever Code</div>
and call that 'banner.php', then do this in every page you want the code.

Code:
<html>

<head>BLAH</head>

<body>Some code before

<?php include('banner.php'); ?>

Some code after</body>

</html>
This then takes whatever is inside banner.php and puts in wherever you specify
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 02-28-2008, 03:23 PM Re: changing banner across entire site
missingtime's Avatar
Skilled Talker

Posts: 83
Location: Athens, Greece
Trades: 0
Quote:
Originally Posted by Gilligan View Post
afraid it can't be done, unless you use frames (bad idea) or php include
Thank you for the tip.
missingtime is offline
Reply With Quote
View Public Profile
 
Old 02-28-2008, 03:23 PM Re: changing banner across entire site
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
To be a bit more precise - it's called a server-side include - no matter what scripting language you use.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-28-2008, 03:35 PM Re: changing banner across entire site
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
Yeah true,

on a different note, frames are still bad
Gilligan is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to changing banner across entire site
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.42841 seconds with 12 queries