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<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
/*<![CDATA[*/
@-webkit-keyframes rotation {
0% { -webkit-transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
}
}
@-webkit-keyframes norotation {
0% { -webkit-transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(-360deg);
}
}
@-moz-keyframes rotation {
0% { -moz-transform: rotate(0deg);
}
100% {
-moz-transform: rotate(360deg);
}
}
@-moz-keyframes norotation {
0% { -moz-transform: rotate(0deg);
}
100% {
-moz-transform: rotate(-360deg);
}
}
@-o-keyframes rotation {
0% { -o-transform: rotate(0deg);
}
100% {
-o-transform: rotate(360deg);
}
}
@-o-keyframes norotation {
0% {
-o-transform: rotate(0deg);
}
100% {
-o-transform: rotate(-360deg);
}
}
.offbotomB:hover {
-webkit-animation: norotation 1s infinite linear;
-o-animation: norotation 1s infinite linear;
-moz-animation: norotation 1s infinite linear;
}
.offbotomB {
height:20px;
width:20px;
background:url(Imagenes/flechadelante.png) no-repeat center;
border-radius:15px;
margin:1px 1px;
padding:0px 0px;
z-index: 1;
position:absolute;
-webkit-animation: norotation 3s infinite linear;
-o-animation: norotation 3s infinite linear;
-moz-animation: norotation 3s infinite linear;
}
.offbotomA:hover {
-webkit-animation: norotation 1s infinite linear;
-o-animation: norotation 1s infinite linear;
-moz-animation: norotation 1s infinite linear;
}
.offbotomA {
height:20px;
width:20px;
background:url(Imagenes/flechaatras.png) no-repeat center;
border-radius:15px;
margin:1px 1px;
padding:0px 0px;
z-index: 1;
position:absolute;
-webkit-animation: norotation 3s infinite linear;
-o-animation: norotation 3s infinite linear;
-moz-animation: norotation 3s infinite linear;
}
.offbotomAA:hover {
-webkit-animation: rotation 1s infinite linear;
-o-animation: rotation 1s infinite linear;
-moz-animation: rotation 1s infinite linear;
}
.offbotomAA {
height:22px;
width:22px;
border:1px dotted red;
outline:green dotted thin;
border-radius:12px;
margin:0px 0px;
padding:0px 0px;
z-index: 2;
position:absolute;
-webkit-animation: rotation 3s infinite linear;
-o-animation: rotation 3s infinite linear;
-moz-animation: rotation 3s infinite linear;
}
.offbotomBB {
height:22px;
width:22px;
border:1px dotted red;
outline:green dotted thin;
border-radius:12px;
margin:0px 0px;
padding:0px 0px;
z-index: 2;
position:absolute;
-webkit-animation: rotation 3s infinite linear;
-o-animation: rotation 3s infinite linear;
-moz-animation: norotation 3s infinite linear;
}
.offbotomBB:hover {
-webkit-animation: rotation 1s infinite linear;
-o-animation: rotation 1s infinite linear;
-moz-animation: rotation 1s infinite linear;
}
/*]]>*/
<div id="botomBBB" class="floatrigth">
Saludos
PD, tendráis que tener un poco más de paciencia al esperar respuestas, sobre todo pensando que hoy es domingo