05/04/2005, 13:54
|
| | | Fecha de Ingreso: febrero-2005
Mensajes: 994
Antigüedad: 20 años Puntos: 9 | |
. Es posible, pero mediante javascript: <script> function EstiloPorTipo(marca,tipo,estilo){ var e=estilo.split(','); var m=document.getElementsByTagName(marca); for(var n=0;n<m.length;n++){ if(m[n].type==tipo){ for(var i=0;i<e.length;i+=2){ m[n].style[e[i]]=e[i+1]; } } } } </script> <body onload=EstiloPorTipo('input','text','background,red,width,200px')> <inputtype="text"value="asd"> <inputtype="button"value="asd"> <!-- programeitor 2005, [email protected] --> .
Última edición por programeitor; 15/10/2005 a las 14:22 |