You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.0 KiB
29 lines
1.0 KiB
function tabit(btn){
|
|
var idname = new String(btn.id);
|
|
var s = idname.indexOf("_");
|
|
var e = idname.lastIndexOf("_")+1;
|
|
var tabName = idname.substr(0, s);
|
|
var id = parseInt(idname.substr(e, 1));
|
|
var tabNumber = btn.parentNode.childNodes.length;
|
|
for(i=0;i<tabNumber;i++){
|
|
//document.getElementById(tabName+"_div_"+i).style.display = "none";
|
|
document.getElementById(tabName+"_btn_"+i).className = "";
|
|
};
|
|
//document.getElementById(tabName+"_div_"+id).style.display = "block";
|
|
btn.className = "curr";
|
|
};
|
|
|
|
function etabit(btn){
|
|
var idname = new String(btn.id);
|
|
var s = idname.indexOf("_");
|
|
var e = idname.lastIndexOf("_")+1;
|
|
var tabName = idname.substr(0, s);
|
|
var id = parseInt(idname.substr(e, 1));
|
|
var tabNumber = btn.parentNode.childNodes.length;
|
|
for(i=0;i<tabNumber;i++){
|
|
document.getElementById(tabName+"_div_"+i).style.display = "none";
|
|
document.getElementById(tabName+"_btn_"+i).className = "";
|
|
};
|
|
document.getElementById(tabName+"_div_"+id).style.display = "block";
|
|
btn.className = "curr";
|
|
};
|