代码修改后的版本,全部提交
This commit is contained in:
14
Mtxfw.shop/_Admin/images/qh.js
Normal file
14
Mtxfw.shop/_Admin/images/qh.js
Normal file
@@ -0,0 +1,14 @@
|
||||
document.writeln("<script>");
|
||||
document.writeln("<!--");
|
||||
document.writeln("\/*第一种形式 第二种形式 更换显示样式*\/");
|
||||
document.writeln("function setTab(name,cursel,n){");
|
||||
document.writeln("for(i=1;i<=n;i++){");
|
||||
document.writeln("var menu=document.getElementById(name+i);");
|
||||
document.writeln("var con=document.getElementById(\"con_\"+name+\"_\"+i);");
|
||||
document.writeln("if(con!=null){");
|
||||
document.writeln("menu.className=i==cursel?\"hover\":\"\";");
|
||||
document.writeln("con.style.display=i==cursel?\"block\":\"none\";");
|
||||
document.writeln("}}");
|
||||
document.writeln("}");
|
||||
document.writeln("\/\/-->");
|
||||
document.writeln("<\/script>")
|
||||
Reference in New Issue
Block a user