How can I change image on hover?
-
Hi, on my SharePoint 2013 site I wish to change an image on the mouse hover over it to a completely different image. I can do this fine in ASP.NET with JavaScript but SharePoint strips out the onmouseover and onmouseout text from my controls. How can I do this otherwise? I've not installed/setup jQuery and would need instructions on how to do that please if that is an offered solution.
-
Hi, on my SharePoint 2013 site I wish to change an image on the mouse hover over it to a completely different image. I can do this fine in ASP.NET with JavaScript but SharePoint strips out the onmouseover and onmouseout text from my controls. How can I do this otherwise? I've not installed/setup jQuery and would need instructions on how to do that please if that is an offered solution.
HTML
Jquery $('#imageid').hover(function() { $(this).attr('src', '/folder/image2.jpg'); }, function() { $(this).attr('src', '/folder/image1.jpg'); });
-
Hi, on my SharePoint 2013 site I wish to change an image on the mouse hover over it to a completely different image. I can do this fine in ASP.NET with JavaScript but SharePoint strips out the onmouseover and onmouseout text from my controls. How can I do this otherwise? I've not installed/setup jQuery and would need instructions on how to do that please if that is an offered solution.