Realize 163 mailbox icon function _javascript Skill

Source: Internet
Author: User
The default state is small icon + single back static color is white, mouse put up small picture into the selection box and the single line background has become gray, if the selection box is not selected at this time to move the mouse back to the default state, if the hook selection box, a single background turned yellow
Support IE FF
<script> function A (obj) {if (obj.childnodes[0].classname = = "Mail" {obj.innerhtml= ' <input class= "checkbox" type= "checkbox" Name= "Parseurloff" value= "1" onclick= "C (this)" & Gt '} ' function B (obj) {if (obj.childnodes[0].classname== "checkbox" & Obj.childnodes[0].checked==false) {Obj.inne Rhtml= '}} function c (obj) {obj.checked?obj.parentnode.style.background= "#ddd": obj.parentnode.style.background= "# FFF '} </script> <div onmouseover= ' A (this) ' onmouseout= ' B (this) ' ></div> <div onmouseover= ' A (t His) "onmouseout=" B "></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.