Sitewide notification bar

iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
Let's say you wanted a static bar at the top or bottom of your site, to display a sitewide message. I've seen similar sites use something similar for (say) holiday hours, support hours, etc.

Could also be used to advertise coupon codes, new products, etc.
updated by @ilovehousemusic: 03/07/14 05:09:32PM
boplive
@boplive
10 years ago
345 posts
I like this idea...I did a a simple one in JR4 for advertising running on the original ISKIN skin which already had a fixed header on top...I just created a separate fixed footer and had it located in the bottom of the page
paul
@paul
10 years ago
4,326 posts
Nice idea for a custom module and a budding JR5 developer.
Fairly straightforward, a datastore module with items that have the code for the message/ad along with the target div ID, a global variable for the timeout between messages, then a bit of javascript/jquery to poke the code into the divs.
Could even have options for different animations when changing the message.


--
Paul Asher - JR Developer and System Import Specialist
michael
@michael
10 years ago
7,721 posts
Take a look at the 'Admin Menu' module for reference. It injects itself into the top of all templates while active.

Look for the bar across the top of the screen with the ACP links in it.

Then build a module using it as reference.

Tags