How do get a bar drop to down from the top of the browser window after a period of time that the user has been viewing the page? Say 5 seconds. This bar would then push all content on the page down until the bar finishes appearing. The bar would be used to show a single line of text informing the user of something. And maybe a small little X on the right side of the bar to close it.
Currently this is the CSS:
#infobar {
border-bottom: 5px solid;
height: 25px;
position: fixed;
width: 100%;
border-bottom-color: #F00;
background-color: #9C9;
margin-top:-16px;
}
#infobar .text {
color: #FFFFFF;
float: left;
font-family: arial;
font-size: 12px;
padding: 5px 0;
position: relative;
text-align: center;
width: 100%;
}
#infobar .text a {
color: #FAFAFA;
}
#infobar .text a:hover {
color: #FFE2A0;
}
</style>
And HTML:
<div id="infobar">
<div class="text">
....this is the bar text....
</div>
</div>
Using only HTML/CSS isn’t possible, as it needs animation and time control, you’ll need an additional technology, such Javascript/JQuery or Flash.
EDIT 1
I think the below code will do what you want.
CSS
Javascript / JQuery
HTML