How to use hover property simultaneously with jQuery's mousemove? -


I have inserted an image-containing code in a simple device that follows the mouse cursor, when using the mouse divas JQuery Mausomov Property It works great, except that I would like to hide the image by default and only when the mouse is present (and then when the mouse disappears again). It can usually be handled with the hover property, but it does not work when a museum is kept with a property? Here is the original code that I am currently using:

  $ ('. Container_'). Mousemove (function (e) {$ ('Picture'). CSS ({'left': e.pagex + 'px',})}};  

Here is a demo page:

Thanks for the help!

Andrew

It would be best to div and divide itself into the event.

  $ ("div.containerDIV") Mouseenter (function () {$ ("img.sun"). Show ();}). Mouseleave (function () {$ ("img.sun"). Hide ();});  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -