![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
27/11/2012, 18:02
|
| | Fecha de Ingreso: octubre-2012
Mensajes: 9
Antigüedad: 12 años, 3 meses Puntos: 0 | |
Respuesta: como cambiar el tamaño de una imagen este es el codigo java que utilizo
html>
<head>
<script language="javascript">
var imagenes=new Array()
imagenes[0]=new Image();
imagenes[0].src="pis.jpg"
imagenes[1]=new Image();
imagenes[1].src="prim.jpg"
imagenes[2]=new Image ();
imagenes[2].src="RES.jpg"
imagenes[3]=new Image ();
imagenes[3].src="si.jpg"
cont=0
function presImagen()
{
if (document.all){
document.getElementById('foto').filters.blendTrans .apply()
document.getElementById('foto').src=imagenes[cont].src
document.getElementById('foto').filters.blendTrans .play()
}
else
{
document.images.foto.src = imagenes[cont].src
}
if (cont < imagenes.length-1)
{cont ++}
else
{cont=0}
tiempo=window.setTimeout('presImagen()',3000)
}
</script>
</head>
<body onLoad="presImagen()">
<img id="foto" src="tibidabo.jpg" style="filter:blendTrans(duration=3)">
</body>
</html> |