Hola Maru77 ,
Le hice unos ajuste al código para que te pueda permite la colocación de titulo y link fijate bien en los cambios.
Código PHP:
Ver original<?php
$imgDb[1] = "http://i26.tinypic.com/11l7ls0.jpg";
$imgDb[2] = "http://i29.tinypic.com/xp3hns.jpg";
$imgDb[3] = "http://i30.tinypic.com/531q3n.jpg";
$imgDb[4] = "http://i31.tinypic.com/119w28m.jpg";
foreach($imgDb as $id){
# Cree una matriz de dos dimenciones para poder tener el control de las propiedades de cada imagen
$img['img'][] = $id;
$img['titulo'][] = "ejemplo imagen ".$id; //$ban->titulo;
$img['link'][] = "http://".$id."/"; # Aqui colocas el link algun link
}
?>
<script type="text/javascript">
window.onload = function(){
var img = new Array();
for(i=0;i<imagenes['img'].length;i++){
// Aqui realice otro cambio que espero lo notes.
img[i] = new Array( imagenes['img'][i],imagenes['link'][i],"_new",imagenes['titulo'][i] );
}
var mygallery=new simpleGallery({
wrapperid: "simplegallery1", //ID of main gallery container,
dimensions: [250, 180], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
imagearray:img,
autoplay: [true, 2500, 2], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int]
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
oninit:function(){ //event that fires when gallery has initialized/ ready to run
//Keyword "this": references current gallery instance (ie: try this.navigate("play/pause"))
},
onslide:function(curslide, i){ //event that fires after each slide is shown
//Keyword "this": references current gallery instance
//curslide: returns DOM reference to current slide's DIV (ie: try alert(curslide.innerHTML)
//i: integer reflecting current image within collection being shown (0=1st image, 1=2nd etc)
}
})
}
</script>
<div id="simplegallery1" style="width:500px"></div>