Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/02/2006, 03:40
Avatar de platinum
platinum
 
Fecha de Ingreso: marzo-2004
Mensajes: 204
Antigüedad: 20 años, 10 meses
Puntos: 0
Pregunta Darle estilo a un script

Hola:

Tengo este codigo

<script>
var months = new Array( "JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC" );

function padZero( i )
{
var result = String(i);
while( result.length < 2 ) result = String(0) + result;
return result;
}

function renderOptions()
{
var now = new Date();
var result = "<option value=''>---</option>";
for( i = now.getMonth(); i < 12 + now.getMonth(); i++ ) {
var m = i % 12 +1;
var y = now.getFullYear() + Math.floor(i / 12);
result += "<option value='" +padZero(m)+"/"+y+ "'>" + months[m-1]+" "+ y + "</option>";
}
return result;
}

document.write( "<select name='cb_smy' onchange='StartDateCheck()' checked onclick='set_hidden()' >" );
document.write( renderOptions() );
document.write( "</select>" );
</script>

Y me gustaria darle estilo poner el tipo de fuente, tamaño de letra. Pero no consigo hacerlo. He probado poniendo <span class="contenido"> </span> entre el script. Pero no funciona.

Alguna sugerencia: