Quiero colocar varias galerias en una sola pagina,tengo este codigo pero cuando coloco las galerias y le doy al siguiente imagen solo funciona la primera galeria.
este es el codigo que tengo.
REF.A101
<img width="600" height="425" name="photoslider" src="
http://img.webme.com/pic/p/pansal/logo-correcto.png"/>
<form name="rotater" method="post">
<script language="JavaScript1.1">
var photos=new Array()
var text=new Array()
var which=0
var what=0
photos[0]="
http://img.webme.com/pic/p/pansal/dscf0229.jpg"
photos[1]="
http://img.webme.com/pic/p/pansal/dscf0231.jpg"
photos[2]="
http://img.webme.com/pic/p/pansal/dscf0236.jpg "
photos[3]="
http://img.webme.com/pic/p/pansal/dscf0239.jpg "
photos[4]="
http://img.webme.com/pic/p/pansal/dscf0240.jpg"
photos[5]="
http://img.webme.com/pic/p/pansal/dscf0243.jpg"
photos[6]="
http://img.webme.com/pic/p/pansal/dscf0251.jpg "
photos[7]="
http://img.webme.com/pic/p/pansal/dscf0252.jpg"
photos[8]="
http://img.webme.com/pic/p/pansal/dscf0254.jpg "
photos[9]="
http://img.webme.com/pic/p/pansal/dscf0256.jpg "
photos[10]="
http://img.webme.com/pic/p/pansal/dscf0263.jpg "
photos[11]="
http://img.webme.com/pic/p/pansal/gran-piscina.jpg"
photos[12]="
http://img.webme.com/pic/p/pansal/dscf0275.jpg "
photos[13]="
http://img.webme.com/pic/p/pansal/dscf0274.jpg "
photos[14]="
http://img.webme.com/pic/p/pansal/dscf0273.jpg "
photos[15]="
http://img.webme.com/pic/p/pansal/dscf0270.jpg"
photos[16]="
http://img.webme.com/pic/p/pansal/dscf0269.jpg"
photos[17]="
http://img.webme.com/pic/p/pansal/dscf0238.jpg"
window.onload=new Function("document.rotater.description.value=text[0]")
function backward(){
if (which>0){
window.status=''
which--
document.images.photoslider.src=photos[which];
what--
document.rotater.description.value=text[what];}}
//
www.cssplantilas.es.tl
function forward(){
if (which<photos.length-1){
which++
document.images.photoslider.src=photos[which]
what++
document.rotater.description.value=text[what];}
else window.status='End of gallery'}
function type()
{alert("This textbox will only display default comments")}
</script>
<input type="button" onClick="backward()" name="B2" value=" Anterior " />
<input type="button" onclick="forward()" name="B1" value=" Siguiente " /><br>
<a onClick="which=1;what=1;backward();return false" href="#"> Volver a la primera</a>
</form>
<br>
<P>
<P>
REF. A102
<img width="600" height="425" name="photoslider" src="
http://img.webme.com/pic/p/pansal/dsc_0052c.jpg "/>
<form name="A102" method="post">
<script language="JavaScript1.1">
var photos=new Array()
var text=new Array()
var which=0
var what=0
photos[0]="
http://img.webme.com/pic/p/pansal/dsc_0056.jpg "
photos[1]="
http://img.webme.com/pic/p/pansal/dsc_0057.jpg "
photos[2]="
http://img.webme.com/pic/p/pansal/dsc_0059.jpg"
photos[3]="
http://img.webme.com/pic/p/pansal/dsc_0051b.jpg"
photos[4]="
http://img.webme.com/pic/p/pansal/dsc_0053b.jpg "
photos[5]="
http://img.webme.com/pic/p/pansal/dsc_0054b.jpg "
photos[6]="
http://img.webme.com/pic/p/pansal/dsc_0055b.jpg "
photos[7]="
http://img.webme.com/pic/p/pansal/dsc_0058b.jpg "
photos[8]="
http://img.webme.com/pic/p/pansal/dsc_0052c.jpg "
window.onload=new Function("document.rotater.description.value=text[0]")
function backward(){
if (which>0){
window.status=''
which--
document.images.photoslider.src=photos[which];
what--
document.rotater.description.value=text[what];}}
//
www.cssplantilas.es.tl
function forward(){
if (which<photos.length-1){
which++
document.images.photoslider.src=photos[which]
what++
document.rotater.description.value=text[what];}
else window.status='End of gallery'}
function type()
{alert("This textbox will only display default comments")}
</script>
<input type="button" onClick="backward()" name="B2" value=" Anterior " />
<input type="button" onclick="forward()" name="B1" value=" Siguiente " /><br>
<a onClick="which=1;what=1;backward();return false" href="#"> Volver a la primera</a>
</form>