Day_Mito

Aumentar Img ao passar mouse

Mar 16th, 2015
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.51 KB | None | 0 0
  1. <html>
  2. <head>
  3. <script language="javascript">
  4. <!--
  5. function aumenta(obj){
  6.    obj.height=obj.height*2;
  7.     obj.width=obj.width*2;
  8. }
  9.  
  10. function diminui(obj){
  11.     obj.height=obj.height/2;
  12.     obj.width=obj.width/2;
  13. }
  14. //-->
  15. </script>
  16.  
  17. <title>Aumentar o tamanho de uma imagem ao passar o mouse</title>
  18. </head>
  19.  
  20. <body>
  21. <center>
  22. <p><img src="http://www.codigofonte.com.br/img/logo.gif" width='258' height='45' alt="CodigoFonte.com.br" onMouseOver="aumenta(this)" onMouseOut="diminui(this)">
  23. </center>
  24. </body>
  25. </html>
Advertisement
Add Comment
Please, Sign In to add comment