<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}
效果:
鼠标移动上去后:
Megalayer是新晋崛起的国外服务器商,成立于2019年,一直都处于稳定发展的状态,机房目前有美国机房,香港机房,菲律宾机房。其中圣何塞包括CN2或者国际线路,Megalayer商家提供了一些VPS特价套餐,譬如15M带宽CN2线路主机最低每月48元起,基于KVM架构,支持windows或者Linux操作系统。。Megalayer技术团队行业经验丰富,分别来自于蓝汛、IBM等知名企业。Mega...
CloudCone 商家产品还是比较有特点的,支持随时的删除机器按时间计费模式,类似什么熟悉的Vultr、Linode、DO等服务商,但是也有不足之处就在于机房太少。商家的活动也是经常有的,比如这次中国春节期间商家也是有提供活动,比如有限定指定时间段之前注册的用户可以享受年付优惠VPS主机,比如年付13.5美元。1、CloudCone新年礼物限定款仅限2019年注册优惠购买,活动开始时间:1月31...
官方网站:点击访问白丝云官网活动方案:一、KVM虚拟化套餐A1核心 512MB内存 10G SSD硬盘 800G流量 2560Mbps带宽159.99一年 26一月套餐B1核心 512MB内存 10G SSD硬盘 2000G流量 2560Mbps带宽299.99一年 52一月套餐...