4
I have the following html code, I need that when the event occurs, the link that is in the data-Hover go to src, and when taking the mouse, return the src link.
<img src="images/manada.jpg" data-hover="images/manada-hover.jpg" class="img-responsive">
I had even managed to do something similar, but when I passed the mouse the image changed, and when I took it, the image continued, only changed when I passed the mouse again (I had to make 2 hovers to return to the original image).
Is there any way to do this with css?
If not, it can be yourself.
I’ve seen some applications using a single image that contains all the icons. In this case, do they use the same technique ? This causes the browser to cache a single image and when rendering, make the process faster ?
– Paulo Gustavo
@Paulogustavo take a look in that reply.
– Renan Gomes
Yeah, after I saw the aheah link, I was sorry
– Paulo Gustavo