熊猫办公系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

55 lines
1.5 KiB

$(function(){
$('.box-new-hot li').mouseenter(function(){
$(this).addClass('on').siblings().removeClass('on');
$('.boxinfo .box-inner').eq($(this).index()).show().siblings().hide();
});
$('#typedown li a').click(function(){
var name = $(this).html();
var kid = $(this).attr('kid');
$('#keyword').attr('key-type',kid);
$('.search-btn').attr('key-type',kid);
$('.searchtype span').text(name);
$('#typedown').hide();
$('#typedown li').show();
$('.allkid'+kid).hide();
var searchname = '搜索'+name;
$('#keyword').attr('placeholder',searchname);
});
$('.searchtype').mouseover(function(){
$('#typedown').show();
});
$('#typedown').mouseleave(function(){
$('#typedown').hide();
})
$('.searchtype').mouseleave(function(){
$('#typedown').hide();
})
$('#typedown').mouseover(function(){
$('#typedown').show();
})
var mark = true;
$(window).scroll(function () {
var scrollheight = parseInt($(document).scrollTop());
if (scrollheight>=300) {
if (mark) {
mark = false;
$('.headercatage').css('top','-75px');
$('.headercatage').show();
$(".headercatage").animate({top:"0px"},300);
$('#dropdown-box').hide();
}
} else {
if(!mark) {
mark=true;
$('.headercatage').hide();
}
}
});
});