Car/Admin/Js/select.js
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
//选择框
;(function(){
$.fn.selects=function(){
this.live('click',function(e){
var num=$(this).index('.select-table');
$('.select-table').not($('.select-table').eq(num)).find('ul').hide();;
var $status=$(this).find('ul').eq(0).css("display");
if($status=="block"){
$(this).find('ul').eq(0).hide();
$(this).find('input').eq(0).css({"border-bottom-left-radius":"3px","border-bottom-right-radius":"3px"});
}else{
$(this).find('ul').eq(0).show();
$(this).find('input').eq(0).css({"border-bottom-left-radius":"0","border-bottom-right-radius":"0"});
}
e.stopPropagation();
});
this.find('li').bind('click',function(e){
var parent=$(this).closest(".select-table");
parent.find('input').eq(0).val($(this).text());
parent.find('ul').eq(0).hide();
e.stopPropagation();
parent.find('input').eq(0).css({"border-bottom-left-radius":"3px","border-bottom-right-radius":"3px"});
});
$(window).click(function(){
$(".select-table ul").hide();
$(".select-table").find('input').css({"border-bottom-left-radius":"3px","border-bottom-right-radius":"3px"});
});
}
})(jQuery);
//浮动选择框
;(function(){
$.fn.mouse_on=function(){
this.hover(function(){
$(".status-table ul").show();
$(this).find('input').css("background","#fff");
$(this).css("box-shadow","0 0 10px #ccc");
},function(){
$(".status-table ul").hide();
$(this).find('input').css("background","#F5F6FA");
$(this).css("box-shadow","none");
});
this.find('li').bind('click',function(e){
$(this).closest(".select-table").find('input').eq(0).val($(this).text());
$(this).addClass('on').siblings().removeClass('on');
$(".select-table ul").hide();
e.stopPropagation();
});
}
})(jQuery);
//标题下划线滑动
function slider_head(current){
//要选中的标题
var _self = $(".info-center-title").find("span a").eq(current);
//右侧预留宽度
var _left_width = 180;
var span_width = _self.outerWidth(true);
var span_left = _self.offset().left-_left_width;
$(".solid-slider").css({"width":span_width+"px","left":span_left});
后面还有 173 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。