?? 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>','','管理當前日志的日志類型接口'));
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("api",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 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 + -