Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/03/2015, 11:32
Avatar de ceaped
ceaped
 
Fecha de Ingreso: febrero-2004
Mensajes: 2.185
Antigüedad: 21 años, 1 mes
Puntos: 9
Respuesta: Agregar varios estilos .css con Javascript

Hola zerokilled
Ok, agregué la propiedad "style.marginLeft" y funcionó

Código Javascript:
Ver original
  1. <script type="text/javascript">
  2. function ocultar(){
  3. document.getElementById('pestana0').style.display = 'none';}
  4.  
  5. function mostrar(){
  6. document.getElementById('pestana0').style.display = 'block';
  7. document.getElementById('pestana0').style.marginLeft = '160px';}
  8. </script>

Gracias por tu ayuda
__________________
Diseñador Gráfico publicitario