Team:Valencia/PruebaRafa

From 2009.igem.org

(Difference between revisions)
Line 4: Line 4:
<script language="JavaScript" type="text/javascript">
<script language="JavaScript" type="text/javascript">
    
    
 +
function miImagen()
 +
{
     var nombres = "";   
     var nombres = "";   
     for (i=0;i<document.images.length;i++)
     for (i=0;i<document.images.length;i++)
Line 9: Line 11:
       nombres= + document.images[i].name + " ";
       nombres= + document.images[i].name + " ";
     }
     }
-
 
+
}
</script>  
</script>  
</head>
</head>
Line 15: Line 17:
<body>
<body>
-
<input type="button" value="Nombre imagen" onClick="alert()">
+
<input type="button" value="Nombre imagen" onClick="miImagen()">
<img src="http://www.tonterias.com/data/200403/4413_Gran_caca.jpg" width="300px" height="200px">
<img src="http://www.tonterias.com/data/200403/4413_Gran_caca.jpg" width="300px" height="200px">
</body>
</body>
</html>
</html>

Revision as of 20:40, 6 December 2009