?? 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>','','修改當前分類的屬性'));
toolMenu.add(new WebFXMenuItem('<font color="#808080">分類日志</font>','', '查看當前分類下的日志'));
}else{
toolMenu.add(new WebFXMenuItem('分類屬性','javascript:doEvent("edit",eId);','修改當前分類的屬性'));
toolMenu.add(new WebFXMenuItem('分類日志','javascript:doEvent("blog",eId);', '查看當前分類下的日志'));
}
toolMenu.add(new WebFXMenuItem('刪除','javascript:doEvent("delete",eId);', '刪除分類'));
toolMenu.add(new WebFXMenuSeparator());
var tmp = new WebFXMenu;
tmp.add(new WebFXMenuItem('鎖定','javascript:doEvent("locked",eId);','鎖定當前分類'));
tmp.add(new WebFXMenuItem('激活','javascript:doEvent("unlocked",eId);','激活當前分類'));
var temp = new WebFXMenu;
temp.add(new WebFXMenuItem('橫欄顯示','javascript:doEvent("view",eId);','在橫欄顯示當前分類'));
temp.add(new WebFXMenuItem('豎欄顯示','javascript:doEvent("unview",eId);','在豎欄顯示當前分類'));
temp.add(new WebFXMenuItem('全部顯示','javascript:doEvent("allview",eId);','同時顯示當前分類'));
}else{
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>','','激活當前分類'));
var temp = new WebFXMenu;
temp.add(new WebFXMenuItem('<font color="#808080">橫欄顯示</font>','','在橫欄顯示當前分類'));
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 + -