⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 scripts.js

📁 PLX网站上9054的所有PDF资料,应用软件自个另下。
💻 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 + -