The close integration of VML and HTML makes it easy to add events to VML. All of the HTML events can be applied to the middle of the VML! The following example shows: When the mouse moves to the circle, the circle follows the mouse movement, when the mouse click, the circle stops moving.
I do not know if you have noticed that the event area of VML is strictly in its own shape, not as a picture, but as a rectangle. By the way, the function object is used, and if there is less content for the functions, and the call is made once, you can use a function object, by using new to create a function object, which is the contents of the functions. A good way to control events is to use a global variable, an event's execution depends on a global variable, and the other event can set the global variable so that events can be controlled.
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