ios5原生壁纸高清下载:js:我想做qq菜单,但是老报错,哪位大侠帮我看看

来源:百度文库 编辑:神马品牌网 时间:2024/05/02 00:29:35
<html>
<head>

<title>
good
</title>

<script>

var item=new array(5);
item[1]=new array(5);
item[2]=new array(5);
item[3]=new array(5);

item[1][1]=new array(5);
item[1][2]=new array(5);
item[1][3]=new array(5);

item[2][1]=new array(5);
item[2][2]=new array(5);
item[2][3]=new array(5);

item[3][1]=new array(5);
item[3][2]=new array(5);
item[3][3]=new array(5);

item[1][1][1]="/st/images/logo.jpg";
item[1][1][2]="子菜单1";
item[1][1][3]="/st/channelAction.do";
item[1][1][4]="菜单1";
item[1][1][5]=1;

item[1][2][1]="/st/images/logo.jpg";
item[1][2][2]="子菜单2";
item[1][2][3]="/st/channelAction.do";
item[1][2][4]="菜单1";
item[1][2][5]=1;

item[1][3][1]="/st/images/logo.jpg";
item[1][3][2]="子菜单3";
item[1][3][3]="/st/channelAction.do";
item[1][3][4]="菜单1";
item[1][3][5]=1;

item[2][1][1]="/st/images/logo.jpg";
item[2][1][2]="子菜单1";
item[2][1][3]="/st/channelAction.do";
item[2][1][4]="菜单2";
item[2][1][5]=2;

item[2][2][1]="/st/images/logo.jpg";
item[2][2][2]="子菜单2";
item[2][2][3]="/st/channelAction.do";
item[2][2][4]="菜单2";
item[2][2][5]=2;

item[2][3][1]="/st/images/logo.jpg";
item[2][3][2]="子菜单3";
item[2][3][3]="/st/channelAction.do";
item[2][3][4]="菜单2";
item[2][3][5]=2;

item[3][1][1]="/st/images/logo.jpg";
item[3][1][2]="子菜单1";
item[3][1][3]="/st/channelAction.do";
item[3][1][4]="菜单3";
item[3][1][5]=3;

item[3][2][1]="/st/images/logo.jpg";
item[3][2][2]="子菜单2";
item[3][2][3]="/st/channelAction.do";
item[3][2][4]="菜单3";
item[3][2][5]=3;

item[3][3][1]="/st/images/logo.jpg";
item[3][3][2]="子菜单3";
item[3][3][3]="/st/channelAction.do";
item[3][3][4]="菜单3";
item[3][3][5]=3;

function show(obj){

content="";

for(i=1;i<4;i++){

content+="<button style='width:130' id='"+item[i][1][5]+"' onclick='show(this)'>"+item[i][1][4]+"</button><br>";

if(obj.id==i)
{

for (k=1;k<10;k++)
{
content+="<img src='"+item[i][k][1]+"'/>"+"<a href='"+item[i][k][3]+"'>"+item[i][k][2]+"</a><br>";
}

}

}
document("pannel").innerHTML=content;

}

</script>

</head>
<body onload="show(this)" >
<div id="pannel" style="width:130;height:460"/>

</body>
</html>