⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 list.js

📁 J-Blog v1.0 系统配置: web.xml里默认配置为:resin 2.1.14 可根据您的具体服务器配置。 注意链接池就是了! 然后导入database/j-blog.sql 默
💻 JS
字号:

/**
 * 右键菜单
 */
function rightMenu()
{
	try
	{
		Id = request("Id",self.window.location.href);
	}
	catch (e){
		Id = 0;
	}
	
	eId = 0;
	elo=window.event.srcElement;

	var toolMenu = new WebFXMenu;
	//toolMenu.add(new WebFXMenuItem('新增模板','javascript:doEvent("addnew",Id);','添加一个新的模板'));

	var tmp = getFromAllElement(frm_category_itemlist)
	if (tmp.length > 0)
	{
		eId = tmp;
	}else{
		eId = elo.id;
	}

	if ((eId != "") && (eId.indexOf("webfx-menu-object") == -1))
	{
		if (eId.indexOf(",") > 0)
		{
			toolMenu.add(new WebFXMenuItem('备份','javascript:doEvent("backup",eId);','备份当前数据表'));
            toolMenu.add(new WebFXMenuItem('优化','javascript:doEvent("optimize",eId);','优化当前数据表'));
            toolMenu.add(new WebFXMenuItem('修复','javascript:doEvent("repair",eId);', '修复当前数据表'));

        }else{
            toolMenu.add(new WebFXMenuItem('备份','javascript:doEvent("backup",eId);','备份当前数据表'));
            toolMenu.add(new WebFXMenuItem('优化','javascript:doEvent("optimize",eId);','优化当前数据表'));
            toolMenu.add(new WebFXMenuItem('修复','javascript:doEvent("repair",eId);', '修复当前数据表'));
        }

    }else{
        toolMenu.add(new WebFXMenuItem('<font color="#808080">备份</font>','','备份当前数据表'));
        toolMenu.add(new WebFXMenuItem('<font color="#808080">优化</font>','','优化当前数据表'));
		toolMenu.add(new WebFXMenuItem('<font color="#808080">修复</font>','','修复当前数据表'));
    }

    toolMenu.add(new WebFXMenuSeparator());

	toolMenu.add(new WebFXMenuItem('刷新','javascript:doEvent("reload");','刷新当前页面'));

	menudata.innerHTML = toolMenu 

	toolMenu.left = window.event.clientX;

	if (window.event.clientY+100 > document.body.clientHeight){
		toolMenuTop = window.event.clientY+document.body.scrollTop-150;
	}else{
		toolMenuTop = window.event.clientY+document.body.scrollTop;
	}

	toolMenu.top = toolMenuTop
	toolMenu.show();
}

/**
 * 保存HTML信息
 * 无刷新更新 DivEachItem 中的数据信息
 * @params 更新HTML代码
 */
function setData(sHTML)
{
	document.all.DivEachItem.innerHTML = sHTML;
}

/**
 * 显示右键菜单
 */
document.oncontextmenu = new Function("rightMenu();return false;");

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -