Plugins/Theme/default/layout.js

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

var layout_moving_time=180;
var layout_border_width=5;
function handlerInTop()
{
	 $(".eLayout_top").unbind("mouseenter",handlerInTop);
	 $(".eLayout_top").animate({top:'0'},layout_moving_time,function(){$(".eLayout_top").unbind("mouseleave",handlerOutTop).bind("mouseleave",handlerOutTop);});	 
	 $(".eLayout_top").removeClass("eLayout_top_float").addClass("eLayout_top_fixed eLayout_top_alpha");
};
function handlerOutTop()
{
	var h= $(".eLayout_top").height()-layout_border_width;
	$(".eLayout_top").unbind("mouseleave",handlerOutTop);
	$(".eLayout_top").animate({top:-h},layout_moving_time,function(){$(".eLayout_top").unbind("mouseenter",handlerInTop).bind("mouseenter",handlerInTop);});
	$(".eLayout_top").removeClass("eLayout_top_fixed").addClass("eLayout_top_float");
};
function handlerInLeft()
{

	 $(".eLayout_menu").unbind("mouseenter",handlerInLeft);	
	 $(".eLayout_menu").animate({left:'0'},layout_moving_time,function(){$(".eLayout_menu").unbind("mouseleave",handlerOutLeft).bind("mouseleave",handlerOutLeft);});
	 $(".eLayout_menu").removeClass("eLayout_menu_float").addClass("eLayout_menu_fixed eLayout_left_alpha");
	 $(".eLayout_menu").getNiceScroll().show();	 
};
function handlerOutLeft()
{
	var w=$(".eLayout_menu").width()-layout_border_width;
	$(".eLayout_menu").unbind("mouseleave",handlerOutLeft);	
	$(".eLayout_menu").animate({left:-w},layout_moving_time,function(){$(".eLayout_menu").unbind("mouseenter",handlerInLeft).bind("mouseenter",handlerInLeft);});	
	$(".eLayout_menu").removeClass("eLayout_menu_fixed").addClass("eLayout_menu_float");
	$(".eLayout_menu").getNiceScroll().hide();
};
function setFixed(name,value)
{
	var url="";
	if(typeof(layout_setFixed_file)=="string")
	{
		url=layout_setFixed_file + "?act=setfixed";
	}
	else
	{
		url="model.aspx?act=setfixed";
	
	}
	if(typeof(AppItem)=="string" && AppItem.length > 0){url+="&AppItem="+AppItem;}
	url+="&name=" + name + "&value=" + value + "&t=" + now();
	$.ajax({
			type: 'get',
			url: url,			
			dataType: "html",
			success: function(data)
			{				
			}
		});
};
function switchLeftFix()
{
	if($(".leftfixbtn").hasClass("leftfixbtn_float"))
	{
		//document.title="修改为固定";
		$(".leftfixbtn").removeClass("leftfixbtn_float").addClass("leftfixbtn_fixed");
后面还有 90 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。