黄花菜图片:百度首页导航栏特效

来源:百度文库 编辑:高校问答 时间:2024/04/20 10:26:08
代码是什么??

用frontpage打开,然后再把代码复制下来

这些英语其实很简单的你自己可以学一学啊

这个叫标签式按钮特效。不过百度用的不是,百度只不过是换到另一个网页以后改下背景颜色罢了。
真正的标签式按钮特效应该是点击按钮内容在同一个页面中切换。
代码如下:
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<style type="text/css">
<!--
body{font-family: 'MS Shell Dlg', 宋体, Tahoma;font-size: 12px;color:#000000;}
td, div, input, textarea{font-family: 'MS Shell Dlg', 宋体, Tahoma;font-size: 12px;cursor: default;}
.title{background-color: #000080;color:#fdf7d3;padding: 1;font-family:宋体;font-size:12px;}
.up{background-color: #cccccc;color:#000000;border: 2px outset #ffffff}
.down{background-color: #cccccc;border:2px inset #ffffff}
.up1{background-color: #cccccc;color: #000000;border: 1px outset #ffffff}
.down1{background-color:#cccccc;border:1px inset #ffffff}
.l { background-color: #FF9999; height: 18px; border-left: 0px outset #ffffff;
border-right: 0px outset #ffffff; color:#000000;
border-top: 0px outset #ffffff; padding-top: 2;height:18}
.lc { background-color: #FF0000; height: 18px; border-left: 0px outset #ffffff;
border-right: 0px outset #ffffff; color:#000000;
border-top: 2px outset #ffffff; padding-top: 2;height:20}
.l-h { background-color: #cccccc; border-left: 2px outset #ffffff ; border-top: 2px outset #ffffff;color:#000000; }
.l-c { background-color: #cccccc; border-top: 2px outset #ffffff }
.l-r { background-color: #cccccc; border-right: 2px outset #ffffff; border-top: 2px outset #ffffff;color:#000000;}
.l-hc { background-color: #cccccc; border-left: 2px outset #ffffff;color:#000000;}
.l-cc { background-color: #cccccc;color:#000000; }
.l-rc { background-color: #cccccc; border-right: 2px outset #ffffff;color:#000000;}
td{color:#000000;}
.STYLE2 {color: #942771}
-->
</style>
<title>标签式按纽</title>

</head>

<body >
<SCRIPT LANGUAGE="JavaScript">
<!--
function restore()
{
td1.className="l";td2.className="l";td3.className="l";td4.className="l";td5.className="l";td6.className="l";td7.className="l";
/*td_1.className="l-h";td_2.className="l-c";td_3.className="l-c";td_4.className="l-c";td_5.className="l-c";td_6.className="l-c";*/
w1.style.display="none";w2.style.display="none";w3.style.display="none";w4.style.display="none";w5.style.display="none";w6.style.display="none";w7.style.display="none";
}
function c1()
{
td1.className="lc";
//td_1.className="l-hc";
w1.style.display="block";
}
function c2()
{
td2.className="lc";
//td_2.className="l-cc";
w2.style.display="block";
}
function c3()
{
td3.className="lc";
//td_3.className="l-cc";
w3.style.display="block";
}
function c4()
{
td4.className="lc";
//td_4.className="l-cc";
w4.style.display="block";
}
function c5()
{
td5.className="lc";
//td_5.className="l-cc";
w5.style.display="block";
}
function c6()
{
td6.className="lc";
//td_6.className="l-cc";
w6.style.display="block";
}
function c7()
{
td7.className="lc";
//td_6.className="l-cc";
w7.style.display="block";
}
//-->
</SCRIPT>
<form name="free" method="post" target="_target">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="400" height="61">
<tr>
<td width="398" height="20" align="center" valign="bottom" onclick=restore();c1();><div id="td1" class="lc">背景</div></td>
<td width="398" height="20" align="center" valign="bottom" onclick=restore();c2();><div id="td2" class="l">屏保</div></td>
<td width="398" height="20" align="center" valign="bottom" onclick=restore();c3();><div id="td3" class="l">外观</div></td>
<td width="398" height="20" align="center" valign="bottom" onclick=restore();c4();><div id="td4" class="l">Web</div></td>
<td width="398" height="20" align="center" valign="bottom" onclick=restore();c5();><div id="td5" class="l">效果</div></td>
<td width="398" height="20" align="center" valign="bottom" onclick=restore();c6();><div id="td6" class="l">设置</div></td>
<td width="398" height="20" align="center" valign="bottom" onclick=restore();c7();><div id="td7" class="l">其他</div></td>
<td width="398" height="20" align="center" valign="bottom"></td>
</tr>

<tr>
<td width="398" height="60" colspan="8" bgcolor="#942771" style="border-top-style: solid; border-top-width: 0; padding: 5">

<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="120">
<tr>
<td width="100%" height="120">
<div align="center">
<center>
<div style="display:" id=w1>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="33%" height="120" bgcolor="#FFDFF4"> </td>
<td width="33%" bgcolor="#FFDFF4"><span class="STYLE2">dfsdfsdf</span></td>
<td bgcolor="#FFDFF4"> </td>
</tr>
</table>
</div>
<div style="display:none" id=w2><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="120" width="40%"> </td>
<td bgcolor="#D86BB5" width="30%"> </td>
<td>sdfsdf</td>
</tr>
</table></div>
<div style="display:none" id=w3><h1>3</h1></div>
<div style="display:none" id=w4><h1>4</h1></div>
<div style="display:none" id=w5><h1>5</h1></div>
<div style="display:none" id=w6><h1>6</h1></div>
<div style="display:none" id=w7><h1>7</h1></div>
</center>
</div> </td>
</tr>
</table>
</div> </td>
</tr>

</table>
</div>
</form>
</body>
</html>