sub.js

来自「LOVESTUdio多校园交易系统 VER 4.0基于3.0开发」· JavaScript 代码 · 共 66 行

JS
66
字号
// JavaScript Document
function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
}
}

function changetable(){
            changeall();
			var num = shows.tagtype.value;
               if(num !== "0"){
			   subs.style.display = "";	   
			   eval("tb"+num).style.display = "";
			   }
			   else { subs.style.display = "none";}
						} 
						
function changeall() {
    for (i=1;i<15;i++) {
      eval("tb"+i).style.display="none";
}						 
}

function changetable1(){

          var num = bored.bordtype.value;
               if(num == "1"){
			   ta1.style.display = "";
			   ta2.style.display = "none"
			   tab1.style.display="none"
			   }         
			   else{
			   ta1.style.display = "none";
			   ta2.style.display = ""
			   tab1.style.display = ""
				   }
						} 
function changetable2(){

          var num = dtag.tagmode.value;
               if(num == "3"){
			   ta1.style.display = "";
			   ta2.style.display = "none"
			   }         
			   else{
			   ta1.style.display = "none";
			   ta2.style.display = ""
				   }
						} 
function changetable3(){

          var num = dtag.jchoce.value;
               if(num !== ""){
			  dtag.jtagnr.value = "<script src='../js/showtag.php?tagname="+num+"'></script>";
			   }
			   else{
				   dtag.jtagnr.value="";
				   }
						} 						

⌨️ 快捷键说明

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