One, the picture follows the mouse movement
1. Requirements: Where to move the mouse, the picture will follow where
2, the use of the event: first listen to the mouse: $ (document). MouseMove (function (event) {}); At this point, you can get the mouse distance from the left side of the page, the top distance through Event.pagex, Event.pagey, and then by modifying the picture of the leftmost, top value.
Second, Pentagram scoring case
1, business logic: ① Mouse moved into a star, this and the previous have become solid; ② not clicked, remove the scoring area, all the stars become hollow; ③ Click, move the scoring area, click the Star and the previous change solid
2, the method used: End (), the use of the end () method, example interpretation: For example, in this chained programming end () represents the end of the Prevall () business, while Nextall () refers to the $ (this) of the Nextall ()
3, the specific code:
jquery Real Case ⑥--pictures follow the mouse, Pentagram rating case