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?

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.