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-bottom: 8px;
}
-->
</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 == num2) num2 = (num2-1)
if (num2 == 0 && num < 11) num2 = (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>