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

📄 script.js

📁 课设做的图书管理系统,主要功能是管理图书的租借情况.里面有功能说明.
💻 JS
字号:
function Trim(strValue){return strValue.replace(/^\s*|\s*$/g,"");}
function GetCookie(sName){
	var aCookie = document.cookie.split(";");
	for (var i=0; i < aCookie.length; i++){
		var aCrumb = aCookie[i].split("=");
		if (sName == Trim(aCrumb[0])){
			return unescape(aCrumb[1]);
		}
	}
	return null;
}
function Trim(strValue){return strValue.replace(/^\s*|\s*$/g,"");}
function SetCookie(sName, sValue){document.cookie = sName + "=" + escape(sValue)+";expires=Fri, 31 Dec 2050 23:59:59 GMT;";}
function showdir()
{
	var framecols = "228,*"
	if (GetCookie("datacols")!=null){
		framecols = GetCookie("datacols");
	}
	top.fstMain.cols=framecols;
	showtoc.style.display="none";
}

function hidedir()
{
	top.fstMain.cols="-5,*";
	top.fraRightbar.showtoc.style.display="";
}

function showhidentopbar()
{
	if(top.allMain.rows=="75,*"){
		top.allMain.rows="-1,*";
		showtop.innerHTML="&nbsp;显示导航栏&nbsp;";
		barlink.style.display="";
		SetCookie("toprows",top.allMain.rows);
	}
	else{
		top.allMain.rows="75,*";
		showtop.innerHTML="&nbsp;隐藏导航栏&nbsp;";
		barlink.style.display="none";
		SetCookie("toprows",top.allMain.rows);
	}
}

function getstatus()
{
	if(top.allMain.rows=="75,*"){
		showtop.innerHTML="&nbsp;隐藏导航栏&nbsp;";
		barlink.style.display="none";
	}
	else{
		showtop.innerHTML="&nbsp;显示导航栏&nbsp;";
		barlink.style.display="";
	}
	if(top.fstMain.cols=="-5,*"){
		showtoc.style.display="";
	}
	else{
		showtoc.style.display="none";
	}
}
function syn()
{
	if(top.location.search!="?url="+top.fraRightFrame.location.pathname){
		top.location = "/?url=" + top.fraRightFrame.location.pathname;// + top.fraRightFrame.location.search + top.fraRightFrame.location.hash;
	}
}
function SelectStart()
{
	window.event.cancelBubble = true;
	window.event.returnValue = false;
	return false;
}


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -