I'm new as a webmaster as I am asking a question in this web that so often has helped me. My knowledge so far is html, css and VERY, VERY little (atm) of Javascript (jQuery), visual basic, asp.net
As ignorant as I am, I try to avoid Javascript as much as possible and focus a lot on CSS's.
In the web I'm currently working I have the menu links as I always do looking like this:
<div class="linkszima">
<ul>
<li class="link1">
<a id="A1" runat="server" href="#">
<h2>Inicio</h2>
</a>
</li>
<li class="link2">
<a id="A2" runat="server" href="#">
<h2>Mantenimiento</h2>
</a>
</li>
<li class="link3">
<a id="A3" runat="server" href="#">
<h2>Diseño Web</h2>
</a>
</li>
<li class="link4">
<a id="A4" runat="server" href="#">
<h2>Programas</h2>
</a>
</li>
<li class="link5">
<a id="A5" runat="server" href="#">
<h2>ERP</h2>
</a>
</li>
<li class="link6">
<a id="A6" runat="server" href="#">
<h2>Contacto</h2>
</a>
</li>
</ul>
</div>
and the css relative to my question:
.link1 a {
height:55px;
}
.link1 a:hover {
background-color: transparent;
background-image:url(../Images/GifDeInicio.gif);
background-repeat:no-repeat;
background-position:12px 0;
}
Now it's perfectly working as required except that the animated gif (not a loop) doesn't load again next time you "hover" it.
Are there any way to load the gif every time you hover with just css? if not possible and I need to use jQuery, would anyone being so kind as to explain how to do it step by step? ( I have currently jquery-1.7.1.js loaded but could get another if necessary)
Thanks a lot in advance and excuse my English, please. It's not my first language.