Hola de nuevo amigos:

Como ya sabreis, instale en mi web un block el cual,lee de una carpeta las
imagenes que en ella hay y muestra una cada vez que se carga la pagina.
El codigo es el siguiente:
Código:
<?php

/************************************************************************/
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/* compiled from PD sources and snippets on the web                     */
/************************************************************************/

if (eregi("block-RandomPic.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}



# Directory goes here relative to script
$folder = 'images/random';
# Directory should contain only images, else you can add some more filtering
$i = 0;
$in = opendir ($folder);
	while ($x = readdir($in))
	{	if ($x != '.' && $x != '..') # Directory should contain only images, else you can add some more filtering
		{$imaged[$i++] = $x;}
	}
closedir ($in);
srand((double)microtime()*1000000);
$image = $folder.'/'.$imaged[rand(0,sizeof($imaged)-1)];

$content .= "<table align=\"center\" border=\"1\" cellpadding=\"6\" cellspacing=\"6\" style=\"border-collapse: collapse\" bgcolor=\"#fffff0\" bordercolor=\"#111111\" width=\"150\" height=\"100\">";
$content .= "<tr><td align=\"center\"><img src=\"$image\" alt=\"Click Image\">";
$content .= "</tr></td></table>";


?>
Pero lo que me gustaria es ponerlas en Slideshow,es decir que vallan apareciendo una tras otra si cargar la pagina.

El codigo en html es es siguiente:

Código:
<head>
<script language="JavaScript1.1">
<!--
//Slideshow Script - HTML.Dynamico 2001
//Mas Scripts y Recursos para tu web en:
//http://www.htmldynamico.cjb.net

//specify interval between slide (in mili seconds)
var slidespeed=3000
//specify images
var slideimages=new Array("1.jpg","2.jpg","4.jpg","5.jpg","6.jpg")
//specify corresponding links
var slidelinks=new Array("http://www.uleila.com","http://www.uleila.com/","http://www.uleila.com/")

var imageholder=new Array()
var ie55=window.createPopup
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}

function gotoshow(){
window.location=slidelinks[whichlink]
}

//-->
</script>
</head>

<body>
<a href="javascript:gotoshow()"><img src="1.jpg" name="slide" border=0 style="filter:progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=15,Duration=1)"></a>

<script language="JavaScript1.1">
<!--
var whichlink=0
var whichimage=0
var pixeldelay=(ie55)? document.images.slide.filters[0].duration*1000 : 0
function slideit(){
if (!document.images) return
if (ie55) document.images.slide.filters[0].apply()
document.images.slide.src=imageholder[whichimage].src
if (ie55) document.images.slide.filters[0].play()
whichlink=whichimage
whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
setTimeout("slideit()",slidespeed+pixeldelay)
}
slideit()

//-->
</script>
</center>
</body>
Pero no se insertarlo en php.

Alguien puede ayudarme?

Gracias y saludos.