UI

下拉菜单3

<script type="text/javascript">// <![CDATA[
  var g_arrResType = [["华语音乐","欧美音乐","日韩音乐","流行MTV","其它音乐"],
["视频短片","精彩电影","电视剧集","卡通动漫","体育节目","综艺节目","相声小品","Flash短片","电影片花"],
["网络游戏","单机游戏","游戏视频","Flash游戏","游戏补丁","掌上游戏"],
["系统工具","网络软件","应用软件","影音媒体","病毒防治","硬件驱动","其它软件"],
["外语教材","计算机类","网络小说","电子杂志","其它文档"],
["软件驱动","手机电影","手机游戏","铃声音乐","手机书籍"]];  
function showSubType(type)  {          
for(var i=1; i<=6; i++)          
{                  
var td = document.getElementById("td"+i);                  
if (td.className == "nav_select")                          
td.className = "nav_normal";          
}          
document.getElementById("td"+type).className = "nav_select";          
/*if(type == 6)          
{                  
document.getElementById("sub").innerHTML = " ";                  
return;          
}*/                  
var sHTML = "  ";          
for(var i=0; i<g_arrResType[type-1].length; i++)          
{                   
if(type==1)                           
var strUrl = "http://pstatic.xunlei.com/channel2/column"+(i+1)+"/list_"+2+"_"+(i+1)+"_1.htm";                  
else if(type==2)                           
var strUrl = "http://pstatic.xunlei.com/channel1/column"+(i+1)+"/list_"+1+"_"+(i+1)+"_1.htm";                  
else                          
var strUrl = "http://pstatic.xunlei.com/channel"+type+"/column"+(i+1)+"/list_"+type+"_"+(i+1)+"_1.htm";                          
strUrl = "JavaScript:OpenPortalPage(\"" + strUrl + "\")";                  
sHTML += "<a href='" + strUrl + "' class='xtitle'>" + g_arrResType[type-1][i] + "</a> ";          
}          
document.getElementById("sub").innerHTML = sHTML;  
}
// ]]></script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td height="4"></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr align="center" valign="middle">
<td id="td1" class="nav_normal" width="40" height="23"><a class="xtitle" onmouseover="showSubType(1)" href="JavaScript:OpenPortalPage('http://pstatic.xunlei.com/channel2/index.htm')">音乐</a></td>
<td class="nav_normal" width="10">|</td>
<td id="td2" class="nav_normal" width="40"><a class="xtitle" onmouseover="showSubType(2)" href="JavaScript:OpenPortalPage('http://pstatic.xunlei.com/channel1/index.htm')">影视</a></td>
<td class="nav_normal" width="10">|</td>
<td id="td3" class="nav_normal" width="40"><a class="xtitle" onmouseover="showSubType(3)" href="JavaScript:OpenPortalPage('http://pstatic.xunlei.com/channel3/index.htm')">游戏</a></td>
<td class="nav_normal" width="10">|</td>
<td id="td4" class="nav_normal" width="40"><a class="xtitle" onmouseover="showSubType(4)" href="JavaScript:OpenPortalPage('http://pstatic.xunlei.com/channel4/index.htm')">软件</a></td>
<td class="nav_normal" width="10">|</td>
<td id="td5" class="nav_normal" width="40"><a class="xtitle" onmouseover="showSubType(5)" href="JavaScript:OpenPortalPage('http://pstatic.xunlei.com/channel5/index.htm')">书籍</a></td>
<td class="nav_normal" width="10">|</td>
<td id="td6" class="nav_normal" width="40"><a class="xtitle" onmouseover="showSubType(6)" href="JavaScript:OpenPortalPage('http://pstatic.xunlei.com/channel6/index.htm')">手机</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table class="nav_normal" width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr valign="middle">
<td width="20" height="27"></td>
<td id="sub" width="100%"></td>
</tr>
</tbody>
</table>

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

相关文章

开始在上面输入您的搜索词,然后按回车进行搜索。按ESC取消。

返回顶部