超酷的网站导航
2009-05-13 09:20
141 查看
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>超级酷的网页导航菜单</title>
<STYLE>
<!--
.xmenu td{font-size:12px;font-family:verdana,arial;font-weight:none;color:#333333;border:1px solid #ffffff;background:#f6f6f6;filter:blendtrans(duration=0.5);cursor:hand;text-align:center;}
-->
</STYLE>
<script>
/*
http://www.qpsh.com/ 网页特效 超级酷的网页导航菜单
这是把事件动作绑定到菜单上的函数
*/
function attachXMenu(objid){
var tds=objid.getElementsByTagName('td');
for(var i=0;i<tds.length;i++){
with(tds[i]){
onmouseover=function(){
with(this){
filters[0].apply();
style.background='#3ea936'; //这是鼠标移上去时的背景颜色
style.border='1px solid #ffffff'; //边框
style.color='#ffffff'; //文字颜色
filters[0].play();
}
}
onmouseout=function(){
with(this){
filters[0].apply();
style.background='#f6f6f6'; //这是鼠标离开时的背景颜色
style.border='1px solid #ffffff'; //边框
style.color='#333333'; //文字颜色
filters[0].play();
}
}
}
}
}
</script>
</head>
<body>
<div align="center">
<table border="1" width="778" cellpadding="0" style="border-collapse: collapse" height="30" id="table4" bgcolor=#DBDBDB bordercolor="#DBDBDB" cellspacing="0">
<tr>
<td>
<div align="center">
<table class="xmenu" id="xmenu0" border="0" width="776" cellspacing="3" cellpadding="3" height="30" id="table5">
<tr>
<td onclick="window.open('http://www.qpsh.com', '_blank');">首 页</td>
<td onclick="window.open('http://www.qpsh.com/listpage/103_1.htm', '_blank');">综合特效</td>
<td onclick="window.open('http://www.qpsh.com/listpage/102_1.htm', '_blank');">菜单特效</td>
<td onclick="window.open('http://www.qpsh.com/listpage/108_1.htm', '_blank');">文本操作</td>
<td onclick="window.open('http://www.qpsh.com/listpage/112_1.htm', '_blank');">图形特效</td>
<td onclick="window.open('http://www.qpsh.com/listpage/113_1.htm', '_blank');">图形特效</td>
<td onclick="window.open('http://www.qpsh.com/listpage/104_1.htm', '_blank');">状态栏类</td>
<td onclick="window.open('http://www.qpsh.com/listpage/114_1.htm', '_blank');">时间日期</td>
<td onclick="window.open('http://www.qpsh.com/listpage/120_1.htm', '_blank');">按钮特效</td>
</tr>
</table><script>attachXMenu(xmenu0); //在上面这个table结束的地方执行事件动作的绑定, 这里的这个xmenu0就是那个table的id</script>
</div>
</td>
</tr>
</table>
</div>
</body>
</html>
本代码由<a href=http://www.qpsh.com>网页特效网</a>提供
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>超级酷的网页导航菜单</title>
<STYLE>
<!--
.xmenu td{font-size:12px;font-family:verdana,arial;font-weight:none;color:#333333;border:1px solid #ffffff;background:#f6f6f6;filter:blendtrans(duration=0.5);cursor:hand;text-align:center;}
-->
</STYLE>
<script>
/*
http://www.qpsh.com/ 网页特效 超级酷的网页导航菜单
这是把事件动作绑定到菜单上的函数
*/
function attachXMenu(objid){
var tds=objid.getElementsByTagName('td');
for(var i=0;i<tds.length;i++){
with(tds[i]){
onmouseover=function(){
with(this){
filters[0].apply();
style.background='#3ea936'; //这是鼠标移上去时的背景颜色
style.border='1px solid #ffffff'; //边框
style.color='#ffffff'; //文字颜色
filters[0].play();
}
}
onmouseout=function(){
with(this){
filters[0].apply();
style.background='#f6f6f6'; //这是鼠标离开时的背景颜色
style.border='1px solid #ffffff'; //边框
style.color='#333333'; //文字颜色
filters[0].play();
}
}
}
}
}
</script>
</head>
<body>
<div align="center">
<table border="1" width="778" cellpadding="0" style="border-collapse: collapse" height="30" id="table4" bgcolor=#DBDBDB bordercolor="#DBDBDB" cellspacing="0">
<tr>
<td>
<div align="center">
<table class="xmenu" id="xmenu0" border="0" width="776" cellspacing="3" cellpadding="3" height="30" id="table5">
<tr>
<td onclick="window.open('http://www.qpsh.com', '_blank');">首 页</td>
<td onclick="window.open('http://www.qpsh.com/listpage/103_1.htm', '_blank');">综合特效</td>
<td onclick="window.open('http://www.qpsh.com/listpage/102_1.htm', '_blank');">菜单特效</td>
<td onclick="window.open('http://www.qpsh.com/listpage/108_1.htm', '_blank');">文本操作</td>
<td onclick="window.open('http://www.qpsh.com/listpage/112_1.htm', '_blank');">图形特效</td>
<td onclick="window.open('http://www.qpsh.com/listpage/113_1.htm', '_blank');">图形特效</td>
<td onclick="window.open('http://www.qpsh.com/listpage/104_1.htm', '_blank');">状态栏类</td>
<td onclick="window.open('http://www.qpsh.com/listpage/114_1.htm', '_blank');">时间日期</td>
<td onclick="window.open('http://www.qpsh.com/listpage/120_1.htm', '_blank');">按钮特效</td>
</tr>
</table><script>attachXMenu(xmenu0); //在上面这个table结束的地方执行事件动作的绑定, 这里的这个xmenu0就是那个table的id</script>
</div>
</td>
</tr>
</table>
</div>
</body>
</html>
本代码由<a href=http://www.qpsh.com>网页特效网</a>提供
相关文章推荐
- CSS实例:超酷的网站导航按钮
- 使用jQuery开发超酷带有背景波浪动画的单页面网站导航菜单
- 2014浅谈网站导航设计
- 优秀的网站 - 导航
- 野创网 | 国内最走心的职业导航网站
- 超异类的“无用类”网站导航网站 - theuselessweb.com
- 技术网站导航
- 分享一个超酷javascript全屏幻灯导航(fullscreen slide navigation)
- 超酷的分类导航代码
- 酷站欣赏:国外13个排版超酷的网站
- 网站导航
- 演练:向网站添加站点导航
- 置顶菜单可用性研究,可使网站导航快22%
- 很漂亮实用可用于网站快速导航的CSS按钮菜单
- 置顶菜单可用性研究,可使网站导航快22%
- 6 个超酷的 3D 特效网站设计
- jQuery ui实现动感的圆角渐变网站导航菜单效果代码
- 应用于网站导航中的 12 个 jQuery 插件
- 7款拥有超酷设计灵感的动态网站设计
- css实现适用于团购网站的橙色导航菜单代码