Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/03/2013, 23:41
Avatar de dontexplain
dontexplain
 
Fecha de Ingreso: junio-2012
Mensajes: 536
Antigüedad: 11 años, 10 meses
Puntos: 127
Respuesta: style.transform: unir ms webkit y moz

Pues simple, una función con el objeto

Código Javascript:
Ver original
  1. function transform(obj,transf)
  2. {
  3. obj.style.transform = transf;
  4. obj.style.webkitTransform = transf;
  5. obj.style.MozTransform = transf;
  6. }
  7.  
  8. obj = document.getElementById("objeto");
  9. transform(obj,"rotate (45deg)");

Mira que... tampoco es para derrame cerebral.
__________________
21añero.
HTML/CSS, PHP, JS/jQuery, Mysql; NodeJS/Socket.io (& V8); C++ ; Python (wxpy); Ensamblador.
Músico (clarinetista/pianista) y compositor