jquery灯箱插件Reboxjquery灯箱插件Rebox是一款轻量级的lightbox灯箱插件。jquery灯箱效果lightboxjquery插件
jquery灯箱插件Reboxjquery灯箱插件Rebox是一款轻量级的lightbox灯箱插件。jquery灯箱效果lightboxjquery插件
$(document).ready(function(){
// quick routine for scrolling nav
var $nav = $('.header ul'),
navoffset = $nav.offset(),
$navclone = $nav.clone().addClass('scrollnav').appendTo('.header'),
$window = $(window);
$window.scroll(function(e){
if((navoffset.top+50) < $window.scrollTop()){
if(!$navclone.hasClass('scrolled'))
$navclone.addClass('scrolled');
}
else $navclone.removeClass('scrolled');
}).scroll();
// highlight the code
$('pre.code').litelighter();
// run the examples
$('.example-container > pre.ex').each(function(i){
eval($(this).data('llcode'));
});
});
</script>