急!请帮我解释下这段JAVASCRIPT代码 15
varico_Root="http://www.zzsky.cn/effect/images/three_tree_menu/topopen.gif";varico_Fo...
var ico_Root = "http://www.zzsky.cn/effect/images/three_tree_menu/topopen.gif";
var ico_Folder1 = "http://www.zzsky.cn/effect/images/three_tree_menu/foldericon.gif";
var ico_Folder2 = "http://www.zzsky.cn/effect/images/three_tree_menu/openfoldericon.gif";
var ico_File = "http://www.zzsky.cn/effect/images/three_tree_menu/htmlicon.gif";
var ico_I = "http://www.zzsky.cn/effect/images/three_tree_menu/I.gif";
var ico_L = "http://www.zzsky.cn/effect/images/three_tree_menu/L.gif";
var ico_L_Child1 = "http://www.zzsky.cn/effect/images/three_tree_menu/Lplus.gif";
var ico_L_Child2 = "http://www.zzsky.cn/effect/images/three_tree_menu/Lminus.gif";
var ico_T = "http://www.zzsky.cn/effect/images/three_tree_menu/T.gif";
var ico_T_Child1 = "http://www.zzsky.cn/effect/images/three_tree_menu/Tplus.gif";
var ico_T_Child2 = "http://www.zzsky.cn/effect/images/three_tree_menu/Tminus.gif";
var ico_O = "http://www.zzsky.cn/effect/images/three_tree_menu/white.gif";
var cengEnd = "";
function clickTree(e)
{
if(e.status == "close")
{
e.status = "open";
eval('document.all.span_' + e.id + ".style.display = 'block';");
clickID = e.id.replace("treeID","")*1;
eval("if(document.all.treeImg_A_" + clickID + ".mark == 'T')document.all.treeImg_A_" + clickID + ".src = ico_T_Child2");
eval("if(document.all.treeImg_A_" + clickID + ".mark == 'L')document.all.treeImg_A_" + clickID + ".src = ico_L_Child2");
eval("document.all.treeImg_B_" + clickID + ".src = ico_Folder2");
}
else if(e.status == "open")
{
e.status = "close";
eval('document.all.span_' + e.id + ".style.display = 'none';");
clickID = e.id.replace("treeID","")*1;
eval("if(document.all.treeImg_A_" + clickID + ".mark == 'T')document.all.treeImg_A_" + clickID + ".src = ico_T_Child1");
eval("if(document.all.treeImg_A_" + clickID + ".mark == 'L')document.all.treeImg_A_" + clickID + ".src = ico_L_Child1");
eval("document.all.treeImg_B_" + clickID + ".src = ico_Folder1");
}
}
是啊 也不知道网上谁写的 还让我看不懂 展开
var ico_Folder1 = "http://www.zzsky.cn/effect/images/three_tree_menu/foldericon.gif";
var ico_Folder2 = "http://www.zzsky.cn/effect/images/three_tree_menu/openfoldericon.gif";
var ico_File = "http://www.zzsky.cn/effect/images/three_tree_menu/htmlicon.gif";
var ico_I = "http://www.zzsky.cn/effect/images/three_tree_menu/I.gif";
var ico_L = "http://www.zzsky.cn/effect/images/three_tree_menu/L.gif";
var ico_L_Child1 = "http://www.zzsky.cn/effect/images/three_tree_menu/Lplus.gif";
var ico_L_Child2 = "http://www.zzsky.cn/effect/images/three_tree_menu/Lminus.gif";
var ico_T = "http://www.zzsky.cn/effect/images/three_tree_menu/T.gif";
var ico_T_Child1 = "http://www.zzsky.cn/effect/images/three_tree_menu/Tplus.gif";
var ico_T_Child2 = "http://www.zzsky.cn/effect/images/three_tree_menu/Tminus.gif";
var ico_O = "http://www.zzsky.cn/effect/images/three_tree_menu/white.gif";
var cengEnd = "";
function clickTree(e)
{
if(e.status == "close")
{
e.status = "open";
eval('document.all.span_' + e.id + ".style.display = 'block';");
clickID = e.id.replace("treeID","")*1;
eval("if(document.all.treeImg_A_" + clickID + ".mark == 'T')document.all.treeImg_A_" + clickID + ".src = ico_T_Child2");
eval("if(document.all.treeImg_A_" + clickID + ".mark == 'L')document.all.treeImg_A_" + clickID + ".src = ico_L_Child2");
eval("document.all.treeImg_B_" + clickID + ".src = ico_Folder2");
}
else if(e.status == "open")
{
e.status = "close";
eval('document.all.span_' + e.id + ".style.display = 'none';");
clickID = e.id.replace("treeID","")*1;
eval("if(document.all.treeImg_A_" + clickID + ".mark == 'T')document.all.treeImg_A_" + clickID + ".src = ico_T_Child1");
eval("if(document.all.treeImg_A_" + clickID + ".mark == 'L')document.all.treeImg_A_" + clickID + ".src = ico_L_Child1");
eval("document.all.treeImg_B_" + clickID + ".src = ico_Folder1");
}
}
是啊 也不知道网上谁写的 还让我看不懂 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询