Ver Mensaje Individual
  #7 (permalink)  
Antiguo 31/10/2009, 16:40
Avatar de GidHarvey
GidHarvey
 
Fecha de Ingreso: mayo-2009
Mensajes: 190
Antigüedad: 14 años, 11 meses
Puntos: 1
Respuesta: imagenes random

Buenas tardes Zerokilled.
Aqui tengo el codigo puesto como crei que se ponia, pero no funciona :S como tengo que ponerlo para que funcione? saludos y muchas gracias.

Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<
title>Documento sin título</title>
<
style type="text/css">
<!--
.
in8 {
    
padding-bottom8px;
}
-->
</
style>
</
head>
<
script type="text/javascript">
ImagenAleatoria(num); 
var 
num Math.floor(Math.random()*11)+1;
var 
num2 Math.floor(Math.random()*11)+1;
if (
num == num2num2 = (num2-1)
if (
num2 == && num 11num2 = (num+1)
alert(num " " num2);
</script>
<body>
<div id="radom"><span class="FontTitle">Random Images</span>
      <div id="imgrandom">
        <div class="in16"></div>
        <div id="boxrandom">
        <a class="linkopacity" href="images/random/1.jpg" rel="lyteshow[random]"><img src="images/random/box_1.jpg" width="50" height="50" border="0" class="trazo" /></a><a class="linkopacity" href="images/random/2.jpg" rel="lyteshow[random]"><img src="images/random/box_2.jpg" width="50" height="50" hspace="8" border="0" class="trazo" /></a><a class="linkopacity" href="images/random/3.jpg" rel="lyteshow[random]"><img src="images/random/box_3.jpg" width="50" height="50" border="0" class="trazo" /></a></div>
        <div class="in8"></div>
        <div id="imgrandom2"><a class="linkopacity" href="images/random/4.jpg" rel="lyteshow[random]"><img src="images/random/box_4.jpg" width="50" height="50" border="0" class="trazo" /></a><a class="linkopacity" href="images/random/5.jpg" rel="lyteshow[random]"><img src="images/random/box_5.jpg" width="50" height="50" hspace="8" border="0" class="trazo" /></a><a class="linkopacity" href="images/random/6.jpg" rel="lyteshow[random]"><img src="images/random/box_6.jpg" width="50" height="50" border="0" class="trazo" /></a></div>
      </div>
    </div>
</body>
</html> 
__________________
La mayoría prefiere pagar por entretenerse que por instruirse.