Interpretation m$ Source code: JavaScript + CSS Implementation of dynamic menu display

Source: Internet
Author: User
<!--interpretation m$ source code: JavaScript + CSS Implementation dynamic Menu display-->
<!--default.htm-->
<!--little Brother's JavaScript level is really bad enough, so the following annotations are personal understanding, there are omissions and improper place also please you to correct the-->
<!--The following source code originates from the Discover/easy2use directory of the m$ Windows Professional installation CD, where you see the final annotation of the document-->
<!--for definitions of units and collections, see the annotations that follow the documentation-->
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<TITLE> easier to use </TITLE><!--Note 1-->
<script language= "JavaScript" >
var Whichim;
var varcolor = "Ddeeff";
Document.onmouseover = MouseOver;
Document.onmouseout = mouseout;
Document.onmousedown = MouseDown;
Document.onmouseup = mouseUp;
function MouseOver () {
var vsrc = window.event.srcElement;
if (Vsrc.classname = = "Child2" | | | vsrc.classname = "CHILD3" | | vsrc.classname = "parent") * * Determine whether the object is "unit" * *
Fcolor = VSrc.style.backgroundColor;
VSrc.style.backgroundColor = Varcolor;
/* Note 2*/
}
}
function Mouseout () {
var vsrc = window.event.srcElement;
if (Vsrc.classname = = "Child2" | | | vsrc.classname = "CHILD3" | | vsrc.classname = = "Parent") {
VSrc.style.backgroundColor = Fcolor;
/* Note 2*/
}
}
function MouseDown () {
var vsrc = window.event.srcElement;
Divcoll=document.all.tags ("DIV");

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.