10、有鼠标标边框菜单

10、有鼠标标边框菜单

<!--将以下代码加入HTML<Body></Body>之间-->

<style>

.menulines{

border:1px solid white;

}

 

.menulines a{

text-decoration:none;

color:black;

}

</style>

<script language="JavaScript1.2">

function borderize(what,color){

what.style.borderColor=color

}

 

function borderize_on(e){

if (document.all)

source3=event.srcElement

else if (document.getElementById)

source3=e.target

if (source3.className=="menulines"){

borderize(source3,"black")

}

else{

while(source3.tagName!="TABLE"){

source3=document.getElementById? source3.parentNode : source3.parentElement

if (source3.className=="menulines")

borderize(source3,"black")

}

}

}

 

function borderize_off(e){

if (document.all)

source4=event.srcElement

else if (document.getElementById)

source4=e.target

if (source4.className=="menulines")

borderize(source4,"white")

else{

while(source4.tagName!="TABLE"){

source4=document.getElementById? source4.parentNode : source4.parentElement

if (source4.className=="menulines")

borderize(source4,"white")

}

}

}

 

</script><SCRIPT type="text/javascript" src=""></SCRIPT>

<SCRIPT language="JavaScript">

<tr><td width="100%" bgcolor="#E6E6E6" height="13"><b><font size="2">导航菜单</font></b></td></tr>

BaiduWriteAD("zouwenyedg","3");

//-->

</SCRIPT>

<table border="0" width="150" cellspacing="0" cellpadding="0" onMouseover="borderize_on(event)" onMouseout="borderize_off(event)" height="95">

 

<tr><td width="100%" class="menulines" height="14"><a href="http://www.7stk.com"><font face="宋体" size="2">网页特效梦工厂</font></a></td></tr>

<tr><td width="100%" class="menulines" height="14"><a href="http://www.skycn.com"><font face="宋体" size="2">天空下载</font></a></td></tr>

<tr><td width="100%" class="menulines" height="14"><a href="http://www.bbs.com"><font face="宋体" size="2">大富翁论坛</font></a></td></tr>

<tr><td width="100%" class="menulines" height="14"><a href="http://www.i.com"><font face="宋体" size="2">Codelphi</font></a></td></tr>

<tr><td width="100%" class="menulines" height="14"><a href="http://www.csdn.net"><font face="宋体" size="2">中国软件</font></a></td></tr>

</table>

Write a comment

Comments: 1
  • #1

    csr04 (Tuesday, 01 September 2009 13:51)

    test