图像附加在光标旁边

发布于 2024-11-26 10:05:10 字数 228 浏览 1 评论 0原文

你们中有人知道任何插件或附加到光标的图像的示例吗?

例如:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

猫性小仙女 2024-12-03 10:05:10

您只需将 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

勿挽旧人 2024-12-03 10:05:10

您只需要创建一个绝对定位的图像并在 mousemove 事件上更新它的位置

you just need to create a absolute positioned image and update it's position on the mousemove event

夜光 2024-12-03 10:05:10

它没有附加到光标上。它只是一个加载覆盖。

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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文