Silezia Longo 0 Posted January 11 Report Share Posted January 11 Srs Bom dia, fiz inumeras tentativas para mostrar a imagem com link em: <script type="text/javascript"> var imagens = new Array( '1.jpg', '2.jpg', '3.jpg','4.jpg', '5.jpg', '6.jpg'); var num_img = 6; var img_atual =0; function ChangeImg() { if (img_atual < (num_img - 1) ) { img_atual = img_atual + 1; } else { img_atual = 0; } document["img_apoio"].src = "http://www.ficasimples.com.br/calcfal/prop/" + imagens[img_atual]; var x = setTimeout ("ChangeImg()", 2000); } </script> ela posteriormente é chamada assim: queria que ao clicar na figura fosse chamado o link da figura especifica conforme valor da variavel imagens[img_atual]///// <img name="img_apoio" src="http://www.ficasimples.com.br/calcfal/prop/1.jpg" alt="" border="0"width="190px" height="210px" align="center"> poderiam me ajudar?? grata Silezia Quote Link to post Share on other sites
Question
Silezia Longo 0
Srs Bom dia,
fiz inumeras tentativas para mostrar a imagem com link em:
<script type="text/javascript">
var imagens = new Array( '1.jpg', '2.jpg', '3.jpg','4.jpg', '5.jpg', '6.jpg');
var num_img = 6;
var img_atual =0;
function ChangeImg()
{
if (img_atual < (num_img - 1) )
{
img_atual = img_atual + 1;
}
else
{
img_atual = 0;
}
document["img_apoio"].src = "http://www.ficasimples.com.br/calcfal/prop/" + imagens[img_atual];
var x = setTimeout ("ChangeImg()", 2000);
}
</script>
ela posteriormente é chamada assim:
queria que ao clicar na figura fosse chamado o link da figura especifica conforme valor da variavel imagens[img_atual]/////
<img name="img_apoio" src="http://www.ficasimples.com.br/calcfal/prop/1.jpg" alt="" border="0"width="190px" height="210px" align="center">
poderiam me ajudar??
grata
Silezia
Link to post
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.