JQuery implements a simple mouse-following tip effect, while jquery implements mouse-following

Source: Internet
Author: User

JQuery implements a simple mouse-following tip effect, while jquery implements mouse-following

Experience: http://hovertree.com/texiao/jsstudy/2/

Implementation

1 move the mouse to the title (here is the <a> label)

Create a div whose content is text at the mouse position

Add the created div to the document

Set the location for the prompt Layer

2 move the mouse out of the title

Remove div

3. When the mouse moves in the title

Add div Effects

The above is followed by the cursor, which is centered:
Http://hovertree.com/texiao/jsstudy/2/1.htm

Complete code for following the cursor is as follows:

1 <! DOCTYPE html> 2 

The realization of center please see: http://hovertree.com/h/bjaf/tishikuang.htm

More effect: http://www.cnblogs.com/jihua/p/webfront.html

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.