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

📄 js.js

📁 “JSP数据库项目案例导航”一书从第一章到第十一章各章实例的源程序文件以及数据库文件。 注意: 1. 本书中的案例提供的数据库环境不同
💻 JS
字号:
function list(url,target,txt)
{document.write("<tr><td width=\"0\"></td><td height=\"18\"><a href="+url+" target="+target+">"+txt+"</a></td></tr>")}
function t(txt)
{document.write("<tr><td width=\"10\"></td><td>"+txt+"</td></tr>")}
var w=200;
function closenavi() {
w-=10;
if (w>-10) {window.parent.testframeset.cols = ''+w+',*';repeat=setTimeout("closenavi()",10);}
else {clearTimeout(repeat);w=200;}
}



function initIt(){
        divCount = document.all.tags("DIV");
        for (i=0; i<divCount.length; i++) {
            obj = divCount(i);
            if (obj.className == "child" || obj.className == "child1") obj.style.display = "none";
        }
}

function expandIt(el) {

        obj = eval("page" + el);
        obj2 = eval("main" + el);
        if (obj.style.display == "none") {
            obj.style.display = "block";
        }
        else {
            obj.style.display = "none";	
        }

}

onload = initIt;

var judge=0;
function expandall(o) {
if (judge==0) {divCount2 = document.all.tags("DIV");
    for (i=0; i<divCount2.length; i++) {
       obj2 = divCount2(i);
         if (obj2.className == "child" || obj.className == "child1" || obj2.style.display == "none") 
			{obj2.style.display = "block";}
			if (obj2.className == "menu")
			{bj2.all.tags('img')[0].src='icon-folder1-open.gif';
            obj2.all.tags('img')[1].src='icon-folder-open.gif';
            }
}

judge=1;
o.src='icon-closeall.gif';
o.alt='全部折叠';
}
else {divCount2 = document.all.tags("DIV");
        for (i=0; i<divCount2.length; i++) {
            obj2 = divCount2(i);
            if (obj2.className == "child" || obj.className == "child1" || obj2.style.display == "block") 
			{obj2.style.display = "none";}
			if (obj2.className == "menu")
			{obj2.all.tags('img')[0].src='icon-folder1-close.gif';
            obj2.all.tags('img')[1].src='icon-folder-close.gif';
            }
}

judge=0;
o.src='icon-expandall.gif';
o.alt='全部展开';
}
}

⌨️ 快捷键说明

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