Ver Mensaje Individual
  #4 (permalink)  
Antiguo 05/02/2012, 19:59
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: Compatibilidad para @KeyFrames usando Javascrip (consulta de html5/css3 av

A lo que te señalo WebOsiris te agrego
tenes unos divs mal anidados, el uso de javascript es innecesario disponiendo de la pseudoclase hover. Lo del border dashed (y dotted), es un viejo bug de firefox, n lo probé , pero podés intentar con border-image.

Ejemplo (le agregué un outline para poder apreciarlo más en Firefox)

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <title>titulo</title>
  4. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  5.  
  6. <style type="text/css">
  7. /*<![CDATA[*/
  8.  
  9. @-webkit-keyframes rotation {
  10.     0%  {   -webkit-transform: rotate(0deg);
  11.  
  12.     }
  13.    
  14.     100% {
  15.             -webkit-transform: rotate(360deg);
  16.  
  17.     }
  18. }
  19.  
  20. @-webkit-keyframes norotation {
  21.     0%  {   -webkit-transform: rotate(0deg);
  22.  
  23.     }
  24.    
  25.     100% {
  26.             -webkit-transform: rotate(-360deg);
  27.  
  28.     }
  29. }
  30.  
  31.  
  32. @-moz-keyframes rotation {
  33.     0%  {   -moz-transform: rotate(0deg);
  34.     }
  35.    
  36.     100% {
  37.             -moz-transform: rotate(360deg);
  38.  
  39.     }
  40. }
  41.  
  42. @-moz-keyframes norotation {
  43.     0%  {   -moz-transform: rotate(0deg);
  44.  
  45.     }
  46.    
  47.     100% {
  48.             -moz-transform: rotate(-360deg);
  49.  
  50.     }
  51. }
  52.  
  53.  
  54.  
  55.  
  56. @-o-keyframes rotation {
  57.     0%  {   -o-transform: rotate(0deg);
  58.  
  59.     }
  60.    
  61.     100% {
  62.  
  63.             -o-transform: rotate(360deg);
  64.     }
  65. }
  66.  
  67. @-o-keyframes norotation {
  68.     0%  {  
  69.             -o-transform: rotate(0deg);
  70.     }
  71.    
  72.     100% {
  73.  
  74.             -o-transform: rotate(-360deg);
  75.     }
  76. }
  77.  
  78.  
  79.  
  80.     .offbotomB:hover  {
  81.         -webkit-animation: norotation 1s infinite linear;
  82.         -o-animation: norotation 1s infinite linear;
  83.         -moz-animation: norotation 1s infinite linear;
  84.  
  85.     }
  86.    
  87.     .offbotomB  {
  88.         height:20px;
  89.         width:20px;
  90.         background:url(Imagenes/flechadelante.png) no-repeat center;
  91.         border-radius:15px;
  92.         margin:1px 1px;
  93.         padding:0px 0px;
  94.         z-index: 1;
  95.         position:absolute;
  96.         -webkit-animation: norotation 3s infinite linear;
  97.         -o-animation: norotation 3s infinite linear;
  98.         -moz-animation: norotation 3s infinite linear;
  99.  
  100.     }
  101.    
  102.     .offbotomA:hover  {
  103.         -webkit-animation: norotation 1s infinite linear;
  104.         -o-animation: norotation 1s infinite linear;
  105.         -moz-animation: norotation 1s infinite linear;
  106.  
  107.     }
  108.    
  109.     .offbotomA  {
  110.         height:20px;
  111.         width:20px;
  112.         background:url(Imagenes/flechaatras.png) no-repeat center;
  113.         border-radius:15px;
  114.         margin:1px 1px;
  115.         padding:0px 0px;
  116.         z-index: 1;
  117.         position:absolute;
  118.         -webkit-animation: norotation 3s infinite linear;
  119.         -o-animation: norotation 3s infinite linear;
  120.         -moz-animation: norotation 3s infinite linear;
  121.  
  122.     }
  123.  
  124.    
  125.     .offbotomAA:hover {
  126.         -webkit-animation: rotation 1s infinite linear;
  127.         -o-animation: rotation 1s infinite linear;
  128.         -moz-animation: rotation 1s infinite linear;
  129.     }
  130.    
  131.     .offbotomAA {
  132.         height:22px;
  133.         width:22px;
  134.         border:1px dotted red;
  135.         outline:green dotted thin;
  136.         border-radius:12px;
  137.         margin:0px 0px;
  138.         padding:0px 0px;
  139.         z-index: 2;
  140.         position:absolute;
  141.         -webkit-animation: rotation 3s infinite linear;
  142.         -o-animation: rotation 3s infinite linear;
  143.         -moz-animation: rotation 3s infinite linear;
  144.        
  145.     }
  146.    
  147.     .offbotomBB {
  148.         height:22px;
  149.         width:22px;
  150.         border:1px dotted red;
  151.         outline:green dotted thin;
  152.         border-radius:12px;
  153.         margin:0px 0px;
  154.         padding:0px 0px;
  155.         z-index: 2;
  156.         position:absolute;
  157.         -webkit-animation: rotation 3s infinite linear;
  158.         -o-animation: rotation 3s infinite linear;
  159.         -moz-animation: norotation 3s infinite linear;
  160.        
  161.     }
  162.    
  163.     .offbotomBB:hover {
  164.  
  165.         -webkit-animation: rotation 1s infinite linear;
  166.         -o-animation: rotation 1s infinite linear;
  167.         -moz-animation: rotation 1s infinite linear;
  168.     }
  169.  
  170. /*]]>*/
  171. </head>
  172. <div class="offbotomAA">
  173. <div class="offbotomA"></div>
  174. </div>
  175. <div id="botomBBB" class="floatrigth">
  176. <div class="offbotomBB">
  177. <div class="offbotomB"></div>
  178. </div>
  179. </div>
  180. </body>
  181. </html>

Saludos
PD, tendráis que tener un poco más de paciencia al esperar respuestas, sobre todo pensando que hoy es domingo
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.