mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Issue 1640 support fixed admin lnb
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10402 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3fd2c47122
commit
30b3f96d98
1 changed files with 22 additions and 0 deletions
|
|
@ -1221,4 +1221,26 @@ jQuery(function($){
|
|||
details.slideToggle(200);
|
||||
viewBtn.toggleClass('details');
|
||||
});
|
||||
|
||||
var lnb = $('div.lnb');
|
||||
var h = lnb.offset().top;
|
||||
function fixedLnb()
|
||||
{
|
||||
if(lnb.css('float') == 'none')
|
||||
{
|
||||
lnb.css('position', 'relative');
|
||||
return;
|
||||
}
|
||||
|
||||
if($(document).scrollTop() >= h-20)
|
||||
{
|
||||
lnb.css({'position':'fixed', 'top':'0px'});
|
||||
}
|
||||
else
|
||||
{
|
||||
lnb.css('position', 'relative');
|
||||
}
|
||||
setTimeout(fixedLnb, 100);
|
||||
}
|
||||
fixedLnb();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue