📄 list.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('<font color="#808080">链接属性</font>','','修改当前链接的属性'));
}else{
toolMenu.add(new WebFXMenuItem('链接属性','javascript:doEvent("edit",eId);','修改当前链接的属性'));
}
toolMenu.add(new WebFXMenuItem('删除','javascript:doEvent("delete",eId);', '删除链接'));
toolMenu.add(new WebFXMenuSeparator());
var tmp = new WebFXMenu;
tmp.add(new WebFXMenuItem('审核','javascript:doEvent("auditing",eId);','审核当前链接'));
tmp.add(new WebFXMenuItem('取消审核','javascript:doEvent("unauditing",eId);','取消审核当前链接'));
var temp = new WebFXMenu;
temp.add(new WebFXMenuItem('首页','javascript:doEvent("view",eId);','在首页显示当前链接'));
temp.add(new WebFXMenuItem('内页','javascript:doEvent("unview",eId);','在内页显示当前链接'));
}else{
toolMenu.add(new WebFXMenuItem('<font color="#808080">链接属性</font>','','修改当前链接的属性'));
toolMenu.add(new WebFXMenuItem('<font color="#808080">删除</font>','','删除链接'));
toolMenu.add(new WebFXMenuSeparator());
var tmp = new WebFXMenu;
tmp.add(new WebFXMenuItem('<font color="#808080">审核</font>','','审核当前链接'));
tmp.add(new WebFXMenuItem('<font color="#808080">取消审核</font>','','取消审核当前链接'));
var temp = new WebFXMenu;
temp.add(new WebFXMenuItem('<font color="#808080">首页</font>','','在首页显示当前链接'));
temp.add(new WebFXMenuItem('<font color="#808080">内页</font>','','在内页显示当前链接'));
}
toolMenu.add(new WebFXMenuItem("审核" , null, "设置当前链接审核状态", tmp));
toolMenu.add(new WebFXMenuSeparator());
toolMenu.add(new WebFXMenuItem("显示" , null, "设置当前链接显示位置", temp));
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 + -