Webpage special effects/js super nice drop-down menu effects

Source: Internet
Author: User
Tags tagname
Tip: you can modify some code before running

Webpage special effects/js super nice drop-down menu effects<style>.menulines{border:1px solid white;}.menulines a{text-decoration:none;color:#FF8000;}</style></head><body text="#FFFF00"><script language="JavaScript">Function borderize (what, color) {what. style. borderColor = color<!--设置对象的边框颜色-->} Function borderize_on (e ){<!--边框显示-->If (document. all)<!--如果是ie浏览器-->Soure3 = event. srcElement<!--获得当前事件的对象-->Else if (document.getelementbyid=source3%e.tar get<!--获得当前事件的对象-->If (source3.className = "menulines "){<!--如果当前事件的对象是菜单-->Borderize (soure3, "black ")<!--在上边加上黑色边框-->} Else {<!--当前事件的对象不是菜单-->While (source3.tagName! = "TABLE "){<!--如果当前对象的tag名称不是table-->Soure3 = document. getElementById? Source3.parentNode: source3.parentElement<!--寻找其父对象-->Borderize (soure3, "black ")<!--将其边框变成黑色-->}}} Function borderize_off (e ){<!--边框隐藏-->If (document. all)<!--如果是ie浏览器-->Source4 = event. srcElement<!--获得当前事件的对象-->Else if (document.getelementbyid=source4=e.tar get<!--获得当前事件的对象-->If (source4.className = "menulines ")<!--如果当前事件的对象是菜单-->Borderize (source4, "white ")<!--在上边加上白色边框-->Else {<!--当前事件的对象不是菜单-->While (source4.tagName! = "TABLE "){<!--如果当前对象的tag名称不是table-->Source4 = document. getElementById? Source4.parentNode: source4.parentElement<!--寻找其父对象-->Borderize (source4, "white ")<!--将其边框变成白色-->}}}</script><table border="0" width="123" cellpadding="2" onMouseOver="borderize_on(event)" onMouseOut="borderize_off(event)"> <tr> <td width="121" bgcolor="#E0E0E0"> <p align="center"><b><font size="3">Software Download</font></b></p> </td> </tr> <tr> <td width="121" class="menulines" align="center"><font size="2">Download playback software</font></td> </tr> <tr> <td width="121" class="menulines" align="center"><font size="2">Learning Software Download</font></td> </tr> <tr> <td width="121" class="menulines" align="center"><font size="2">Download Game Software</font></td> </tr></table><!--本例程实现了出现边框的菜单--><!--边框出现时用黑色,边框消失时用白色--><!--对鼠标事件的函数响应--><!--对不同浏览器的支持-->
Tip: you can modify some code before running

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.