1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>">
<html xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>...</title>
</head>
<body>
<div style="float:left;margin-right:20px">
<input type="button" value="faire apparaître une image comme par magie" onclick="vu()" />
</div>
<div id="cadre" style="float:left;width:359px;height:0px;overflow:hidden">
<img src="<a href="http://javatwist.imingo.net/ed26.gif" target="_blank">http://javatwist.imingo.net/ed26.gif</a>" alt="Edika Powaaaa" />
</div>
<script type="text/javascript">
var n=0;
function vu(){
setInterval("if(n<333) n++;document.getElementById('cadre').style.height=n+'px'",1)
}
</script>
</body>
</html> |
Partager