Ver Mensaje Individual
  #4 (permalink)  
Antiguo 19/12/2002, 19:06
chivi
 
Fecha de Ingreso: diciembre-2001
Ubicación: Madrid
Mensajes: 889
Antigüedad: 22 años, 4 meses
Puntos: 4
De nada!!

Pues mira, trabajándolo un poco, puedes hacer ésto:
Código PHP:
<html>
<
head>
<
script>
var 
autor=new Array()
var 
texto_imagen=new Array()
var 
imagen_autor=new Array()

autor[0] = "<b>Autor 1</b>";
texto_imagen[0] = "<b>Imagen Autor 1</b>";
imagen_autor[0] = "<img src=\"autor1.jpg\">";

autor[1] = "<b>Autor 2</b>";
texto_imagen[1] = "<b>Imagen Autor 2</b>";
imagen_autor[1] = "<img src=\"autor2.jpg\">";

autor[2] = "<b>Autor 3</b>";
texto_imagen[2] = "<b>Imagen Autor 3</b>";
imagen_autor[2] = "<img src=\"autor3.jpg\">";

var 
whichquote=Math.floor(Math.random()*(autor.length))
</script>
</head>
<body>
<table border="1" width="100%">
<tr>
<td width="100%">
<script>
document.write(autor[whichquote])
</script>
</td>
</tr>

<tr>
<td width="100%">
<script>
document.write(texto_imagen[whichquote])
</script>
</td>
</tr>

<tr>
<td width="100%">
<script>
document.write(imagen_autor[whichquote])
</script>
</td>
</tr>
</table>
</body>
<html> 
PD: Luego ya tu misma editas los array de autor, texto_imagen, y imagen_autor, con el formato que quieras

¿Así te sirve?

Saludos!

Última edición por chivi; 19/12/2002 a las 19:11