A bug_javascript technique to solve hot zone setting main entity through the Fromelement property of event object

Source: Internet
Author: User
When you click the "Set as primary entity" hyperlink, the original prompt box changes color and displays the contents: "has been set to merge primary entity."
Problem: When a hot zone box on the tip of the hyperlink under another hot zone B, click a hot zone prompt box hyperlink, will trigger B Hot Zone MouseOver event, causing a hot zone of the box will disappear.
This problem I have been puzzled for a long time can not find a solution, last week Zhou Jun prompted me to detect the source element of the event. I suddenly think of IE's event object has a property fromelement, tested it, sure enough, after clicking a hot zone hint box hyperlink, B Hot Zone mouseover event in the fromelement is null, so it's good to do, in the show hot zone of the prompt box function, Determines whether a fromelement is null, or return if null. To solve this problem, although this fromelement only exists in IE event.

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.