帮我给这个导航菜单做连接

来源:百度知道 编辑:UC知道 时间:2024/05/20 09:29:22
<style>
.menu td{
font-size:12px;
color:#ffffff;
border:1px solid orange;
background:orange;
filter:blendtrans(duration=0.5);
cursor:hand;
text-align:center;
}
</style>
<script>
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='#69F'; //这是鼠标移上去时的背景颜色
style.border='1px solid #ffffff'; //边框
style.color='#FFF'; //文字颜色
filters[0].play();
}
}
onmouseout=function(){
with(this){
filters[0].apply();
style.background='orange'; //这是鼠标离开时的背景颜色
style.border='1px solid orange'; //边框
style.color='#ffffff'; //文字颜色
filters[0].play();
}
}
}
}
}
</script>
<!--菜单从这里开始, 注意要把class设置成和css里相同的, 还要为它设

<style>
.menu td{
font-size:12px;
color:#ffffff;
border:1px solid orange;
background:orange;
filter:blendtrans(duration=0.5);
cursor:hand;
text-align:center;
}
</style>
<script>
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='#69F'; //这是鼠标移上去时的背景颜色
style.border='1px solid #ffffff'; //边框
style.color='#FFF'; //文字颜色
filters[0].play();
}
}
onmouseout=function(){
with(this){
filters[0].apply();
style.background='orange'; //这是鼠标离开时的背景颜色
style.border='1px solid orange'; //边框
style.color='#ffffff'; //文字颜色
filters[0].play();
}
}
}
}
}
</script>
&l