Jump to content

[SOLVED] Can I hide/show special event banners on my sites with PHP/CSS?


mazman13

Recommended Posts

I have three sites on the same server with different domains.

 

I want to put a code on each site that I can activate from time to time with

some kinda of special event banner. Something where I can make one or

two changes somewhere and it go global.

 

I was thinking something like this for the top of each webpage:

<?php 
include("../promo.php");
?>

 

My promo.php page would be like this:

<img src="somepromo.jpg" id="promo"/>

 

And then on my CSS page it would be like this:

#promo {
width:760px;
margin:0 auto;
display:none; /* I can change this to block or something when I want the banner to display on the sites. Other wise it would just be none and the banner wouldn't effect the sites. */
}

 

Would something like that work? Or is there an easy way to do all of this?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.