欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

JS實(shí)現(xiàn)鼠標(biāo)滑過(guò)顯示邊框的菜單效果

 更新時(shí)間:2016年09月21日 14:52:12   作者:webdm  
這篇文章主要介紹了JS實(shí)現(xiàn)鼠標(biāo)滑過(guò)顯示邊框的菜單效果,涉及javascript響應(yīng)鼠標(biāo)事件動(dòng)態(tài)修改頁(yè)面元素的相關(guān)操作技巧,需要的朋友可以參考下

本文實(shí)例講述了JS實(shí)現(xiàn)鼠標(biāo)滑過(guò)顯示邊框的菜單效果。分享給大家供大家參考,具體如下:

<html>
<head>
<title>JS鼠標(biāo)滑過(guò)顯示邊框菜單</title>
</head>
<body>
<style>
.menulines{
border:1px solid white;
}
.menulines a{
text-decoration:none;
color:red;
}
</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>
<table border="0" width="150" cellspacing="0" cellpadding="0" onMouseover="borderize_on(event)" onMouseout="borderize_off(event)" height="95">
<tr><td width="100%" bgcolor="#E6E6E6" height="13"><b><font size="2">導(dǎo)航菜單</font></b></td></tr>
<tr><td width="100%" class="menulines" height="14"><a href="#">網(wǎng)頁(yè)特效</a></td></tr>
<tr><td width="100%" class="menulines" height="14"><a href="#">學(xué)習(xí)教程</a></td></tr>
<tr><td width="100%" class="menulines" height="14"><a href="#">網(wǎng)頁(yè)素材</a></td></tr>
<tr><td width="100%" class="menulines" height="14"><a href="#">軟件下載</a></td></tr>
<tr><td width="100%" class="menulines" height="14"><a href="#">平面設(shè)計(jì)</a></td></tr>
</table>
</body>
</html>

更多關(guān)于JavaScript相關(guān)內(nèi)容感興趣的讀者可查看本站專(zhuān)題:《JavaScript切換特效與技巧總結(jié)》、《JavaScript查找算法技巧總結(jié)》、《JavaScript動(dòng)畫(huà)特效與技巧匯總》、《JavaScript錯(cuò)誤與調(diào)試技巧總結(jié)》、《JavaScript數(shù)據(jù)結(jié)構(gòu)與算法技巧總結(jié)》、《JavaScript遍歷算法與技巧總結(jié)》及《JavaScript數(shù)學(xué)運(yùn)算用法總結(jié)

希望本文所述對(duì)大家JavaScript程序設(shè)計(jì)有所幫助。

相關(guān)文章

最新評(píng)論