?? list.js
字號(hào):
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);','添加一個(gè)新的管理員'));
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>','','修改當(dāng)前管理員'));
}else{
toolMenu.add(new WebFXMenuItem('修改','javascript:doEvent("edit",eId,elo);','修改當(dāng)前管理員'));
}
toolMenu.add(new WebFXMenuItem('刪除','javascript:doEvent("delete",eId,elo);', '刪除管理員'));
toolMenu.add(new WebFXMenuSeparator());
if (eId.indexOf(",") > 0)
{
toolMenu.add(new WebFXMenuItem('<font color="#808080">相關(guān)日志</font>','','管理當(dāng)前管理員的相關(guān)日志'));
toolMenu.add(new WebFXMenuItem('<font color="#808080">相關(guān)評(píng)論</font>','','管理當(dāng)前管理員的相關(guān)評(píng)論'));
}else{
toolMenu.add(new WebFXMenuItem('相關(guān)日志','javascript:doEvent("related",eId,elo);','管理當(dāng)前管理員的相關(guān)日志'));
toolMenu.add(new WebFXMenuItem('相關(guān)評(píng)論','javascript:doEvent("comment",eId,elo);','管理當(dāng)前管理員的相關(guān)評(píng)論'));
}
toolMenu.add(new WebFXMenuSeparator());
var tmp = new WebFXMenu;
tmp.add(new WebFXMenuItem('鎖定','javascript:doEvent("locked",eId);','鎖定當(dāng)前管理員'));
tmp.add(new WebFXMenuItem('激活','javascript:doEvent("unlocked",eId);','激活當(dāng)前管理員'));
}else{
toolMenu.add(new WebFXMenuItem('<font color="#808080">修改</font>','','修改當(dāng)前管理員'));
toolMenu.add(new WebFXMenuItem('<font color="#808080">刪除</font>','','刪除管理員'));
toolMenu.add(new WebFXMenuSeparator());
toolMenu.add(new WebFXMenuItem('<font color="#808080">相關(guān)日志</font>','','管理當(dāng)前管理員的相關(guān)日志'));
toolMenu.add(new WebFXMenuItem('<font color="#808080">相關(guān)評(píng)論</font>','','管理當(dāng)前管理員的相關(guān)評(píng)論'));
toolMenu.add(new WebFXMenuSeparator());
var tmp = new WebFXMenu;
tmp.add(new WebFXMenuItem('<font color="#808080">鎖定</font>','','鎖定當(dāng)前管理員'));
tmp.add(new WebFXMenuItem('<font color="#808080">激活</font>','','激活當(dāng)前管理員'));
}
toolMenu.add(new WebFXMenuItem("狀態(tài)" , null, "設(shè)置當(dāng)前管理員狀態(tài)", tmp));
toolMenu.add(new WebFXMenuSeparator());
toolMenu.add(new WebFXMenuItem('刷新','javascript:doEvent("reload");','刷新當(dāng)前頁(yè)面'));
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;");
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -