<style type="text/css">
ul{ width:400px; margin:0px auto; list-style:none; padding:0px;}
ul li{ width:100px; float:left; height:30px; line-height:30px; text-align:center; font-size:13px;}
ul li a{ background:#ff0000; display:block; text-decoration:none;}
ul li a:hover{ background:; text-decoration:underline;}
</style>
<ul> <li ><ahref="">问问首页</a></li>
<li><a href="#">问题库</a></li> <li><a href="#">问问之星</a></li> <li><a href="#">问问团队</a></li> </ul>
网页内的代码:
</table> <table width="896" height="40" border="0" align="center" background="军火/imgs/导航背景.gif"> <tr> <td align="center" class="zhmm" width="180" ><a href="首页.html" class="a"><p onMouseOver="xiala(0)">官方首页</p></a></td> <td align="center" class="zhmm" width="180" ><a href="#" class="a"><p onMouseOver="xiala(1)">热卖武器</p></a></td> <td align="center" class="zhmm" width="180" ><a href="#" class="a"><p onMouseOver="xiala(2)">热卖防具</p></a></td> <td align="center" class="zhmm" width="180" ><a href="#" class="a"><p onMouseOver="xiala(3)">客服交流</p></a></td> <td align="center" class="zhmm" width="180" ><a href="#" class="a"><p onMouseOver="xiala(4)" onClick="qingqing()">您的枪盒</p></a></td> </tr> </table>
<table width="100%" height="42" align="center"> <tr> <td> <div id="div1" style="color:#FF00FF; display:none"> <table width="900" height="32" align="center" class="xiala1" border="0"> <tr> <td align="center" width="225" height="32"><a href="#" class="b"><p onClick="qingqing()">亮丽匕首类</p></a></td><td width="225" height="32" align="center"><a href="#" class="b"><p onClick="qingqing()">精装手枪类</p></a></td><td width="225" height="32" align="center"><a href="#" class="b"><p onClick="qingqing()">华丽轻机枪</p></a></td><td width="222" height="32" align="center"><a href="#" class="b"><p onClick="qingqing()">超威重机枪</p></a></td></tr></table></div> <div id="div2" style="color:#0000FF; display:none"> <table width="900" height="32" align="center" class="xiala1" border="0"> <tr> <td align="center" width="180" height="32"><a href="#" class="b"><p onClick="qingqing()">防弹衣</p></a></td><td align="center" width="180" height="32"><a href="#" class="b"><p onClick="qingqing()">装甲车</p></a></td><td align="center" width="180" height="32"><a href="#" class="b"><p onClick="qingqing()">战斗机</p></a></td><td align="center" width="180" height="32"><a href="#" class="b"><p onClick="qingqing()">坦克类</p></a></td><td align="center" width="180" height="32"><a href="#" class="b"><p onClick="qingqing()">航母类</p></a></td></tr></table></div> <div id="div3" style="color:#0000FF; display:none"> <table width="900" height="32" align="center" class="xiala1" border="0"> <tr> <td align="center" width="450" height="32"><a href="#" class="b"><span onClick="xialaa(2)">需要联系我们</span></a></td> <td align="center" width="450" height="32"><a href="#" class="b"><span onClick="xialaa(3)">留下联系方式</span></a></td> </tr></table> </div> </tr> </table>
JS代码:
function xiala(num) { for(i=1;i<=4;i++) { var div=document.getElementById("div" + i); if(div == null) continue; if(i == num) { div.style.display="block"; }else { div.style.display="none"; } } } //下拉式导航及其链接1 function xialaa(num) { for(i=1;i<=100;i++) { var div=document.getElementById("divv" + i); if(div == null) continue; if(i == num) { div.style.display="block"; }else { div.style.display="none"; } } } //下拉式导航及其链接2
css代码:
td.zhmm{ color:#FFFFFF;} .zc{ color:#FF0000; font-family:隶书; text-align:center;} td.zhuce{ color:#FFFF99; font-family:"隶书"; font-size:20px;} td.tishi{ color:#66FF00; font-family:"新宋体"; font-size:14;} .biaoti{ color:#00FFFF; font-family: "华文新魏"; font-size:24px;} .abc{ color:#FFFFFF; font-family:elephant; font-size:18px;} a.a{ color:#999999; font-size:20px; text-decoration:none; font-weight:bold; font-family:"华文新魏";} a.a:hover{ color:#FFFF00; text-decoration:underline; font-size:24px} .xiala1{ color:#CCCCCC; font-family:"华文新魏"; font-size:18px; text-decoration:none} .zhuce55{ color:#999999; font-family:隶书; font-size:18px;} .zhuce66{ color:#FF0000; font-family:"华文新魏"; font-size:16px;} .dibiao{ font-family:"华文新魏"; font-size:16px; color:#666666} a.b{ color:#66FF33; font-family:"华文新魏"; font-size:18px; text-decoration:none} a.b:hover{ color:#FF66FF; text-decoration:underline; font-size:20;} a.c{ color:#FFFFFF; font-family:"华文新魏"; font-size:18px; text-decoration:none} a.c:hover{ color:#FF0000; text-decoration:underline; font-size:18;} .chenggong{ color:#FF99FF; font-family:隶书; font-size:18px} .zuixin{ color:red; font-family:隶书; font-size:18px}
效果:
鼠标移动上去后:
近日CloudCone发布了最新的补货消息,针对此前新年闪购年付便宜VPS云服务器计划方案进行了少量补货,KVM虚拟架构,美国洛杉矶CN2 GT线路,1Gbps带宽,最低3TB流量,仅需14美元/年,有需要国外便宜美国洛杉矶VPS云服务器的朋友可以尝试一下。CloudCone怎么样?CloudCone服务器好不好?CloudCone值不值得购买?CloudCone是一家成立于2017年的美国服务器...
在刚才更新Vultr 新年福利文章的时候突然想到前几天有网友问到自己有在Vultr 注册账户的时候无法用支付宝付款的问题,当时有帮助他给予解决,这里正好顺带一并介绍整理出来。毕竟对于来说,虽然使用的服务器不多,但是至少是见过世面的,大大小小商家的一些特性特征还是比较清楚的。在这篇文章中,和大家分享如果我们有在Vultr新注册账户或者充值购买云服务器的时候,不支持支付宝付款的原因。毕竟我们是知道的,...
乐凝网络怎么样?乐凝网络是一家新兴的云服务器商家,目前主要提供香港CN2 GIA、美国CUVIP、美国CERA、日本东京CN2等云服务器及云挂机宝等服务。乐凝网络提供比同行更多的售后服务,让您在使用过程中更加省心,使用零云服务器,可免费享受超过50项运维服务,1分钟内极速响应,平均20分钟内解决运维问题,助您无忧上云。目前,香港HKBN/美国cera云服务器,低至9.88元/月起,支持24小时无理...