📄 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",0);','添加一篇新的日志'));
var tmp = getFromAllElement(frm_product_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,elo);','修改当前日志'));
}
toolMenu.add(new WebFXMenuItem('删除','javascript:doEvent("delete",eId,elo);', '删除日志'));
toolMenu.add(new WebFXMenuSeparator());
if (eId.indexOf(",") > 0)
{
toolMenu.add(new WebFXMenuItem('<font color="#808080">相关日志</font>','','管理当前日志的相关日志'));
toolMenu.add(new WebFXMenuItem('<font color="#808080">相关评论</font>','','管理当前日志的相关评论'));
toolMenu.add(new WebFXMenuItem('<font color="#808080">预览</font>','','查看当前商品'));
}else{
toolMenu.add(new WebFXMenuItem('相关日志','javascript:doEvent("related",elo);','管理当前日志分类的相关日志'));
toolMenu.add(new WebFXMenuItem('相关评论','javascript:doEvent("comment",eId,elo);','管理当前日志的相关评论'));
toolMenu.add(new WebFXMenuItem('预览','javascript:doEvent("preview",eId,elo);','查看当前日志'));
}
toolMenu.add(new WebFXMenuSeparator());
var tmp = new WebFXMenu;
tmp.add(new WebFXMenuItem('锁定','javascript:doEvent("locked",eId);','锁定当前日志'));
tmp.add(new WebFXMenuItem('激活','javascript:doEvent("unlocked",eId);','激活当前日志'));
}else{
toolMenu.add(new WebFXMenuItem('<font color="#808080">修改</font>','','修改当前日志'));
toolMenu.add(new WebFXMenuItem('<font color="#808080">删除</font>','','删除日志'));
toolMenu.add(new WebFXMenuSeparator());
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());
var tmp = new WebFXMenu;
tmp.add(new WebFXMenuItem('<font color="#808080">锁定</font>','','锁定当前日志'));
tmp.add(new WebFXMenuItem('<font color="#808080">激活</font>','','激活当前日志'));
}
toolMenu.add(new WebFXMenuItem("状态" , null, "设置当前日志状态", tmp));
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();
}
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 + -