?? popmenu2.js
字號:
var x, y;
document.onmousedown=new Function(" parent.click(event); return false;")
document.onkeypress=new Function(" press(event); return false;")
MSIEIndex = navigator.userAgent.indexOf("MSIE");
netscap = ((MSIEIndex) == -1);
function press(e)
{
if (PopMenu.style.visibility!="hidden")
{
//alert(event.keyCode);
if (netscap)
{
doClick(e.which);
}
else
{
//if (event.keyCode == 69){alert("E");}
doClick(e.keyCode);
}
}
}
function doClick(iCode,oWin)
{
var Char;
if (iCode>0)
{
Char=String.fromCharCode(iCode);
Char=Char.toUpperCase();
}else
{
Char=iCode
};
//alert(Char);
obj=document.all["td"+Char];
if (obj.disabled)
{
}
else
{
switch (Char)
{
case 'B':
parent.history.back();
break;
case 'O':
parent.history.forward();
break;
case 'X':
parent.location.href="/indexFrame-main.htm";
break;
case 'Q':
window.close();
break;
case 'E':
alert('12');
break;
case 'S':
parent.location='view-source:'+parent.location.href;
break;
case 'R':
//alert("aaa");
location.reload();
break;
}
}
}
function MouseEvents() {
//document.onmousedown = new Function(" click(event); return false;")
//document.oncontextmenu = new Function("return false;");
}
MouseEvents()
function SetOverColor(obj)
{
obj.style.backgroundColor="#08246b";
obj.style.color="FFFFFF";
}
function SetOutColor(obj)
{
obj.style.backgroundColor="d6d3ce";
obj.style.color="#000000";
}
/*
function SetOver(sid)
{
obj=document.all["tr"+sid];
obj.style.backgroundColor="#08246b";
obj.style.color="FFFFFF";
objTD=document.all["td"+sid];
if (objTD.disabled)
{
bDisable=true;
objTD.disabled=false;
objTD.onmousedown=new Function("return false;");
document.onmousedown = new Function(" return false;")
obj.style.color="#777777";
}
}
function SetOut(sid)
{
obj=document.all["tr"+sid];
objTD=document.all["td"+sid];
if (bDisable)
{
objTD.disabled=true;
objTD.onmousedown=new Function("doClick(sid)");
document.onmousedown = new Function(" click(event); return false;")
bDisable=false;
}
obj.style.backgroundColor="d6d3ce";
obj.style.color="#000000";
}
*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -