José Gustavo Posted September 12, 2011 Report Share Posted September 12, 2011 (edited) Tenho o seguinte arquivo:<html> <head> <title>Mudar de Fotos sem recarregar página</title> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <script type="text/javascript" language="javascript"> function trocaFoto() { divFoto.innerHTML="<img src=\"http://i56.tinypic.com/ndn639.png\" border=\"0\" alt=\"Figura\" />"; } function dexaFoto() { divFoto.innerHTML="<img src=\"http://i55.tinypic.com/18zuz7.png\" border=\"0\" alt=\"Figura\" />"; } </script> </head> <body> <div name="divFoto" id="divFoto"><img src="http://i51.tinypic.com/r761pv.png" border="0" alt="Figura" /></div> <input type="button" value="Imagem 1" onClick="java script:dexaFoto();"></input> <input type="button" value="Imagem 2" onClick="java script:trocaFoto();"></input> </body> </html>E a pergunta é: Tem algum jeito de substituir as imagens por tabelas? Edited September 12, 2011 by José Gustavo Quote Link to comment Share on other sites More sharing options...
Question
José Gustavo
Tenho o seguinte arquivo:
E a pergunta é: Tem algum jeito de substituir as imagens por tabelas?
Edited by José GustavoLink to comment
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.