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
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
you just need to create a absolute positioned image and update it's position on the mousemove event
Its not attached to the cursor. Its just an loading overlay.
http://coderjournal.com/2009/11/create-an-attractive-loading-panel-in-jquery/
精彩评论