![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
03/07/2012, 14:40
|
![Avatar de lordglazoon](http://static.forosdelweb.com/customavatars/avatar426442_1.gif) | | | Fecha de Ingreso: julio-2011
Mensajes: 54
Antigüedad: 13 años, 6 meses Puntos: 8 | |
Respuesta: funcion en javascript no se si entendi bien sera esto:
<head>
<script type="text/javascript">
function numero_alateorio()
{
var num1=Math.round(Math.random()*98)+1;
document.getElementById("id_div").innerHTML = num1;
}
</script>
</head>
<body onload="numero_alateorio()">
<div id="id_div" class="segundo-termino">
</div>
</body> |