?? 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 + -