还是自己来。对了,网站上的无法COPY
// var t_id;//表格ID
var i_id;//箭头ID
var img_id;//图片ID
var on_img="../pic/lt_bg_arw.jpg";
var off_img="../pic/lt_bg_arw1.jpg";
var bas_img="../pic/lt_bas.jpg";
var on_img1="../pic/lt_1.jpg";
var on_img2="../pic/lt_2.jpg";
var on_img3="../pic/lt_3.jpg";
var on_img4="../pic/lt_4.jpg";
var on_img5="../pic/lt_5.jpg";
var on_img6="../pic/lt_6.jpg";
var on_img7="../pic/lt_7.jpg";
var on_img8="../pic/lt_bas.jpg";
if (t_id.style.display == "none") {
if(t_id==table1) {
img_id.src=on_img1;
t_id.style.display="";
i_id.src=on_img;
i_id.alt="折叠表格";
table2.style.display="none";
table3.style.display="none";
table4.style.display="none";
table5.style.display="none";
table6.style.display="none";
table7.style.display="none";
table8.style.display="none";}
else if (t_id==table2) {
img_id.src=on_img2;
t_id.style.display="";
i_id.src=on_img;
i_id.alt="折叠表格";
table1.style.display="none";
table3.style.display="none";
table4.style.display="none";
table5.style.display="none";
table6.style.display="none";
table7.style.display="none";
table8.style.display="none";}
else if (t_id==table3) {
img_id.src=on_img3;
t_id.style.display="";
i_id.src=on_img;
i_id.alt="折叠表格";
table1.style.display="none";
table2.style.display="none";
table4.style.display="none";
table5.style.display="none";
table6.style.display="none";
table7.style.display="none";
table8.style.display="none";}
else if (t_id==table4) {
img_id.src=on_img4;
t_id.style.display="";
i_id.src=on_img;
i_id.alt="折叠表格";
table1.style.display="none";
table2.style.display="none";
table3.style.display="none";
table5.style.display="none";
table6.style.display="none";
table7.style.display="none";
table8.style.display="none";}
else if (t_id==table5) {
img_id.src=on_img5;
t_id.style.display="";
i_id.src=on_img;
i_id.alt="折叠表格";
table1.style.display="none";
table3.style.display="none";
table4.style.display="none";
table2.style.display="none";
table6.style.display="none";
table7.style.display="none";
table8.style.display="none";}
else if (t_id==table6) {
img_id.src=on_img6;
t_id.style.display="";
i_id.src=on_img;
i_id.alt="折叠表格";
table1.style.display="none";
table3.style.display="none";
table4.style.display="none";
table5.style.display="none";
table2.style.display="none";
table7.style.display="none";
table8.style.display="none";}
else if (t_id==table7) {
img_id.src=on_img7;
t_id.style.display="";
i_id.src=on_img;
i_id.alt="折叠表格";
table1.style.display="none";
table3.style.display="none";
table4.style.display="none";
table5.style.display="none";
table6.style.display="none";
table2.style.display="none";
table8.style.display="none";}
else if (t_id==table8) {
img_id.src=on_img8;
t_id.style.display="";
i_id.src=on_img;
i_id.alt="折叠表格";
table1.style.display="none";
table3.style.display="none";
table4.style.display="none";
table5.style.display="none";
table6.style.display="none";
table2.style.display="none";
table7.style.display="none";}
}
else{//否则
t_id.style.display="none";
i_id.src=off_img;
i_id.alt="展开表格";
img_id.src=bas_img;}
}
//-->
| 五金轻工 |  |
|
| 箱包制品 |  |
|
| 日用品 |  |
|
| 饰品 |  |
|
| 工艺品 |  |
|
| 家居用品 |  |
|
| 电子电器 |  |
|