当然要合并在一起啦,不然你有100节点就写100个函数吗?
node、img 分别为接点名和图片名
function img(node, img)
{
if(document.all[node].style.display == 'none')
{
document.all[node].style.display = '';
document.all[img].src = "images/detail_yj/tree_button_01.gif";
}
else
{
document.all[node].style.display = 'none';
document.all[img].src = "images/detail_yj/tree_button.gif";
}
}
node、img 分别为接点名和图片名
function img(node, img)
{
if(document.all[node].style.display == 'none')
{
document.all[node].style.display = '';
document.all[img].src = "images/detail_yj/tree_button_01.gif";
}
else
{
document.all[node].style.display = 'none';
document.all[img].src = "images/detail_yj/tree_button.gif";
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货