?? scripts.js
字號:
sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("li");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" over";
hideSelects();
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" over\\b"), "");
showSelects();
}
}
}
if (window.attachEvent) window.attachEvent('onload', sfHover);
/* Fix IE6/7 ActiveX activation */
function ieFlash(path, fwidth, fheight, nojs) {
document.write('<object type="application/x-shockwave-flash" data="'+ path +'" width="' + fwidth +'" height="' + fheight +'">');
document.write('<param name="movie" value="'+ path +'" />');
document.write('<param name="wmode" value="transparent" />');
document.write(nojs);
document.write('</object>');
}
/* Creates jump menu functionality for home page */
function jumpMenu(targ,selObj,restore) {
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
function hideSelects(){
var oSelects=document.getElementById("content").getElementsByTagName("select");
for(var i=0;i<oSelects.length;i++)
oSelects[i].className+=" invisible";
}
function showSelects(){
var oSelects=document.getElementById("content").getElementsByTagName("select");
for(var i=0;i<oSelects.length;i++)
oSelects[i].className=oSelects[i].className.replace(" invisible","");
}
/* Contact form functionality */
function openWindow(url) {
winStats='resizable=yes,toolbar=yes,location=yes,directories=no,menubar=no,'
winStats+='scrollbars=yes,width=800,height=600'
if (navigator.appName.indexOf("Microsoft")>=0) {
winStats+=',left=0,top=0'
}else{
winStats+=',screenX=10,screenY=25'
}
floater=window.open(url,"ABC",winStats)
floater.focus();
}
function formHandler(form) {
var windowprops = "height=510,width=502,location=no,"
+ "scrollbars=yes,menubars=yes,toolbars=yes,resizable=yes";
URL = form.site.options[form.site.selectedIndex].value;
popup = window.open(URL,"MenuPopup", windowprops);
}
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -