1 Star 0 Fork 0

木子欢儿/HGDH

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mjs.js 4.53 KB
一键复制 编辑 原始数据 按行查看 历史
木子欢儿~ 提交于 2019-08-31 05:40 . Add files via upload
$(function(){
/*百度统计代码*/
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?e422443978851cab4a6061bd00774795";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
/*百度统计结束*/
$('.keywordClose').click(function(){
$('.keywordClose').hide()
$('.keyword').hide()
})
$('#logoLeft').mouseenter(function(){
$('#logoLeftFe').animate({'top':'0px'},0)
$('#logoLeftFe').animate({'top':'-750px'},1000)
})
$('#logoLeft').click(function(){
$('#bigBox').hide()
$('#recoPage').show()
$('#recoPage').animate({'margin-top':'-90px','opacity':'1'},500)
})
$('.recoBtn').click(function(){
$('#bigBox').show()
$('#recoPage').hide()
$('#recoPage').animate({'margin-top':'-150px','opacity':'0'},0)
})
$('.navBg').hide()
$('.buy').mouseenter(function(){
$('.navBg').hide()
$('.navBg01').show()
$('.navBg01 a').animate({'top':'0','bottom':'0','opacity':'1'},300)
})
$('.news').mouseenter(function(){
$('.navBg').hide()
$('.navBg02').show()
$('.navBg02 a').animate({'top':'0','bottom':'0','opacity':'1'},300)
})
$('.forum').mouseenter(function(){
$('.navBg').hide()
$('.navBg03').show()
$('.navBg03 a').animate({'top':'0','bottom':'0','opacity':'1'},300)
})
$('.tool').mouseenter(function(){
$('.navBg').hide()
$('.navBg04').show()
$('.navBg04 a').animate({'top':'0','bottom':'0','opacity':'1'},300)
})
$('.favorites').mouseenter(function(){
$('.navBg').hide()
$('.navBg05').show()
$('.navBg05 a').animate({'top':'0','bottom':'0','opacity':'1'},300)
})
/*滑动页面*/
$.fn.hoverDelay = function(options){
var defaults = {
hoverDuring: 200,
outDuring: 200,
hoverEvent: function(){
$.noop();
},
outEvent: function(){
$.noop();
}
};
var sets = $.extend(defaults,options || {});
var hoverTimer, outTimer;
return $(this).each(function(){
$(this).hover(function(){
clearTimeout(outTimer);
hoverTimer = setTimeout(sets.hoverEvent, sets.hoverDuring);
},function(){
clearTimeout(hoverTimer);
outTimer = setTimeout(sets.outEvent, sets.outDuring);
});
});
}
$('.hZongheBtn').hoverDelay({
hoverEvent: function(){
$('.hSiteBox').hide()
$('.hZonghe').show()
$(".hNav").removeClass("currentHNav")
$(".hZongheBtn").addClass("currentHNav")
}
});
$('.hGouwuBtn').hoverDelay({
hoverEvent: function(){
$('.hSiteBox').hide()
$('.hGouwu').show()
$(".hNav").removeClass("currentHNav")
$(".hGouwuBtn").addClass("currentHNav")
}
});
$('.hZixunBtn').hoverDelay({
hoverEvent: function(){
$('.hSiteBox').hide()
$('.hZixun').show()
$(".hNav").removeClass("currentHNav")
$(".hZixunBtn").addClass("currentHNav")
}
});
$('.hShejiaoBtn').hoverDelay({
hoverEvent: function(){
$('.hSiteBox').hide()
$('.hShejiao').show()
$(".hNav").removeClass("currentHNav")
$(".hShejiaoBtn").addClass("currentHNav")
}
});
$('.hYingyinBtn').hoverDelay({
hoverEvent: function(){
$('.hSiteBox').hide()
$('.hYingyin').show()
$(".hNav").removeClass("currentHNav")
$(".hYingyinBtn").addClass("currentHNav")
}
});
$('.hShenghuoBtn').hoverDelay({
hoverEvent: function(){
$('.hSiteBox').hide()
$('.hShenghuo').show()
$(".hNav").removeClass("currentHNav")
$(".hShenghuoBtn").addClass("currentHNav")
}
});
$('.hGongjuBtn').hoverDelay({
hoverEvent: function(){
$('.hSiteBox').hide()
$('.hGongju').show()
$(".hNav").removeClass("currentHNav")
$(".hGongjuBtn").addClass("currentHNav")
}
});
$('.hItsiteBtn').hoverDelay({
hoverEvent: function(){
$('.hSiteBox').hide()
$('.hItsite').show()
$(".hNav").removeClass("currentHNav")
$(".hItsiteBtn").addClass("currentHNav")
}
});
$('.hQuzhanBtn').hoverDelay({
hoverEvent: function(){
$('.hSiteBox').hide()
$('.hQuzhan').show()
$(".hNav").removeClass("currentHNav")
$(".hQuzhanBtn").addClass("currentHNav")
}
});
$('.promptBtn').hoverDelay({
hoverEvent: function(){
$('.promptText').show()
}
});
$('.promptBtn').mouseout(function(){
$(".promptText").hide()
})
/*搜索引擎切换*/
/*$('.sChoiceBtn').click(function(){
$(".scBigBox").show()
})
$('.scSmallBox').click(function(){
$(".scBigBox").hide()
})*/
/*简洁、详细切换*/
$(document).ready(function() {
$.fn.fullpage({
anchors: ['pa1', 'pa2', 'pa3', 'pa4']
});
});
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/muzihuaner/HGDH.git
git@gitee.com:muzihuaner/HGDH.git
muzihuaner
HGDH
HGDH
master

搜索帮助