Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/12/2007, 17:51
juanoide
 
Fecha de Ingreso: diciembre-2007
Mensajes: 13
Antigüedad: 16 años, 4 meses
Puntos: 0
Veis algun fallo en este codigo:

lo dicho si veis algun fallo, porque debe salir cualquiera de los 18 al azar, pero no se porque los dos ultimos nunca salen.

A ver si estoy loco o hay algun fallo, muchas gracias de antemano ;)

<html><head><title>PARTICOTAKU</title>
<style type="text/css">
<!--
.style1 {
font-size: 24px;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
color: #0000FF;
}
-->
</style>
</head><SCRIPT>
var number=18;
var random_number=0;
link = new Array(18);
link[0] = "tabu/tabu 1.html";
link[1] = "tabu/tabu 2.html";
link[2] = "tabu/tabu 3.html";
link[3] = "tabu/tabu 4.html";
link[4] = "tabu/tabu 5.html";
link[5] = "tabu/tabu 6.html";
link[6] = "tabu/tabu 7.html";
link[7] = "tabu/tabu 8.html";
link[8] = "tabu/tabu 9.html";
link[9] = "tabu/tabu 10.html";
link[10] = "tabu/tabu 11.html";
link[11] = "tabu/tabu 12.html";
link[12] = "tabu/tabu 13.html";
link[13] = "tabu/tabu 14.html";
link[14] = "tabu/tabu 15.html";
link[15] = "tabu/tabu 16.html";
link[16] = "tabu/tabu 17.html";
link[17] = "tabu/tabu 18.html";

function loadRandomPage()
{
today=new Date();
jran=today.getTime();
ia=9301;
ic=49297;
im=233280;
jran = (jran*ia+ic) % im;
random_number=Math.ceil( (jran/(im*1.0)) *number);
if (window.parent)
window.parent.location=link[random_number-1];
else
window.location=link[random_number-1];
}
function viewSource()
{
var current_url="";
current_url=document.location;
window.location="view-source:"+current_url;
}
function WinOpen()
{
alert('\nLa pagina se cargará en ventana completa.\n\n');
window.open("tu_pagina.htm","DisplayWindow","menub ar=yes,scrollbars=yes");
window.open("tu_pagina.htm","DisplayWindow","menub ar=yes,scrollbars=yes");
}
</SCRIPT><body background="imagenes/fondos/back08.jpg">
<div align="center">

<center>
<INPUT TYPE="button" VALUE="Pulsa para otra pregunta al azar" onClick="loadRandomPage()">
</div>
</body></html>

Última edición por juanoide; 18/12/2007 a las 19:48