Home >Web Front-end >JS Tutorial >JavaScript text effect that follows the x, y coordinates of the mouse_javascript skills

JavaScript text effect that follows the x, y coordinates of the mouse_javascript skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 19:14:401475browse

The word effect that follows the x, y coordinates of the mouse


[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute
]<script> function oMove() { var x=event.x; var y=event.y; if (y>0&&y<300) {obj.style.top =y;} if (x>200&&x<500) {obj1.style.left =x; } } </script>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn