图像附加在光标旁边
你们中有人知道任何插件或附加到光标的图像的示例吗?
例如:
http://www.beatport.com/genre/chill-out/10< /a>
当您单击链接时,光标上会附加一个正在加载的 gif 动画。
谢谢
do any of you guys know of any plugins or examples of an image attached to the cursor.
For example:
http://www.beatport.com/genre/chill-out/10
when you click on a link a loading animated gif is attached to the cursor.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您只需将 onclick 事件分配给链接即可。
调用的函数将创建一个 IMG 元素,分配其 SRC 和 CSS(例如绝对位置、基于光标位置的 x,y 坐标),并使图像可见。
这是一个类似的工作示例:
http://www.javascriptkit.com/script/script2/ simpleimagetrail.shtml
You can just assign onclick event to the links.
And the function called would create an IMG element, assign its SRC and CSS ( eg. absolute position, x,y coordinates based on cursor position ) , and make the image visible.
here is a similar working example :
http://www.javascriptkit.com/script/script2/simpleimagetrail.shtml
您只需要创建一个绝对定位的图像并在 mousemove 事件上更新它的位置
you just need to create a absolute positioned image and update it's position on the mousemove event
它没有附加到光标上。它只是一个加载覆盖。
http://coderjournal.com/2009/11/在 jquery 中创建有吸引力的加载面板/
Its not attached to the cursor. Its just an loading overlay.
http://coderjournal.com/2009/11/create-an-attractive-loading-panel-in-jquery/