mazman13 Posted September 26, 2008 Share Posted September 26, 2008 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 https://forums.phpfreaks.com/topic/125970-solved-can-i-hideshow-special-event-banners-on-my-sites-with-phpcss/ Share on other sites More sharing options...
mazman13 Posted October 1, 2008 Author Share Posted October 1, 2008 Something like that seems to work. I've tested it but I havn't used it for real yet. Link to comment https://forums.phpfreaks.com/topic/125970-solved-can-i-hideshow-special-event-banners-on-my-sites-with-phpcss/#findComment-654769 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.