Gostaria da ajuda de vocês novamente.
Estou fazendo uma galeria de imagens usando o conhecimento adquirido aqui no fórum e estou com problemas.
Na galeria, ao clicar na miniatura, aparece a imagem e é pra aparecer a legenda também. Porém a legenda não está aparecendo.
Fiz um script, catando tudo que achei... e como ainda estou engatinhando nisso, vocês podem me ajudar?
o script:
<script language="javascript"> <!-- var text=new Array() function troca(x) { document.getElementById("imagem").src=x; } function escreve(y){ document.getElementById("idcelula").innerHTML = text[0]; } function apaga(){ document.getElementById("idcelula").innerHTML = ''; } text[0]="Libby watching another dog from the front porch" text[1]="A calm moment. EXTREMELY RARE!" text[2]="Curious as to what that flash was all about" text[3]="Mad at Momma for taking pictures." text[4]="Libby striking back!" text[5]="They make messes and they lay in them." text[6]="Libby catching a frisbee, Ministix following." text[7]="Teste de fotos" text[8]="Libby watching another dog from the front porch" text[9]="A calm moment. EXTREMELY RARE!" text[10]="Curious as to what that flash was all about" text[11]="Mad at Momma for taking pictures." text[12]="Libby striking back!" //--> </script>
estou puxando a imagem assim:
<td width="63"><a href="javascript:;" onmouseover="troca('images/001.jpg');escreve('text[0]')" onmouseout="apaga()"><img border="0" src="mini/001tb.jpg" width="63" height="45"></a></td>
o local da imagem:
<td width="40%"><img src="images/001.jpg" id="imagem" width="420" height="300">
o local da legenda:
<td height="17" align="right" colspan="2" id="idcelula" class="texto"><p align="right"></td>