1 <div class="center">2 <div class="smart-digits-logo" id="logo">3 <span guy="fernando" class="circle" style="clear: both;"></span>4 <span guy="david" class="circle"></span>5 <span guy="raul" class="circle"></span>6 <span guy="paco" class="circle" style="clear: both;"></span>7 <span guy="bryan" class="circle"></span>8 <span guy="peter" class="circle"></span>9 <span guy="ruben" class="circle" style="clear: both;"></span>10 <span guy="gerardo" class="circle"></span>11 <span guy="glyn" class="circle"></span>12 </div>13 </div>14 15 16 <script type="text/javascript">17 var guys = ["fernando","david","raul","paco","bryan","peter","ruben","gerardo","glyn"];18 19 var logo = document.getElementById('logo');20 21 logo.addEventListener('mouseenter', function(e){22 var guy = Math.round(Math.random(guys.length));23 logo.setAttribute('guy', guy);24 }, true);25 26 </script>
Enlace
El enlace para compartir es: