WebContent/qiantai/script/head.js
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*品牌列表*/
var $j = jQuery.noConflict();
var brandArea = function () {
$j(".brand_class li").each(function (i) {
$j(this).mouseenter(function () {
$j(this).find("div").stop().animate({ "top": -50 }, 300);
})
$j(this).mouseleave(function () {
$j(this).find("div").stop().animate({ "top": 0 }, 300);
})
});
}
$j(function () {
//搜索
$j("#btnsch").click(function () {
window.location = SiteUrl + '/product/search_jump.htm?key=' + encodeURIComponent($j("#sch").val());
});
//读取购物车数量
var dd = new Date();
$j("#head_cart_no").load("/ajax/head/shoppingcart.htm?act=getcount&d=" + escape(dd));
//head 弹出菜单部分
var cateMenu = function () {
var cateLiNum = $j(".cateMenu li").length;
$j(".cateMenu li").each(function (index, element) {
if (index < cateLiNum - 1) {
$j(this).mouseenter(function () {
var ty = $j(this).offset().top - 158;
var obj = $j(this).find(".list-item");
var sh = document.documentElement.scrollTop || document.body.scrollTop;
var oy = ty + (obj.height() + 30) + 158 - sh;
var dest = oy - $j(window).height()
if (oy > $j(window).height()) {
ty = ty - dest - 10;
}
if (ty < 0) ty = 0;
$j(this).addClass("on");
obj.show();
$j(".cateMenu li").find(".list-item").stop().animate({ "top": ty });
obj.stop().animate({ "top": ty });
})
$j(this).mouseleave(function () {
$j(this).removeClass("on");
$j(this).find(".list-item").hide();
})
}
});
$j(".navCon_on").hover(function () {
$j(".cateMenu").show();
},
function () {
$j(".cateMenu").hide();
})
} ();
后面还有 250 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
