Jump to content
Fórum Script Brasil
  • 0

link em imagens rotativas js


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;
img_atual = 0;

document["img_apoio"].src = "http://www.ficasimples.com.br/calcfal/prop/" + imagens[img_atual];

var x = setTimeout ("ChangeImg()", 2000);


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??





Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Cloud Computing

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...