thats not what i want macho
mehemai, when you go to the page you dont see this bar anywhere.but when you scrolling down the page it will appear. thats what i want
Machan.. you have to think smart here..
Use the 1st link...
style your bar [set width & height etc.]
<div style="height:1000px;width:500px;">
<div id="floatbar" style="background:gray;
width:450px;
height:40px;
position:absolute;
left:0;top:0px;">
</div>
</div>
Then.. [#floatbar is your bar]
'n' is scroll's y possision (points from top)...
change the 'n' as your adjustments
$(window).scroll(function(){
if ($(window).scrollTop()
<= n)
{
//set #floatbar visible = false
}
else
{
//set #floatbar visible = true
}
});