Cut & Paste Animated Information Bar
Description: This script mimics the interface of the IE ActiveX information bar that slides into view from the top of the browser in displaying information to your visitors in a eye catching way! The bar slides in view and remains static on the screen even when the user scrolls the page. Frequency control lets you limit the display of it to once per session if desired.
Example: Look at the top of the page! Reload page if you didn't catch the "animated" effect.
Directions: Simply copy the below into the HEAD section of your page:
The script uses an image for the "close" button, which you should download below:
As you will see at the bottom of the script, the code to call the information bar is as follows:
var infobar=new informationbar()
//infobar.setfrequency('session') //Uncomment this line to set information bar to only display once per browser session!
The two important functions to take note are:
setfrequency(keyword): Call this function to set the display frequency of the bar. The two valid values are "session" or "always". In the former, the bar is only shown once per browser session to the visitor.