Foros del Web » Programando para Internet » Javascript »

slideshow - Como puedo añadirle un fading a las fotos

Estas en el tema de slideshow - Como puedo añadirle un fading a las fotos en el foro de Javascript en Foros del Web. Hola amigos tengo este codigo Código: <html> <head> <!-- primer paso: copiar dentro del tag head newimg[0]="images/PICT0009.jpg"; newimg[1]="images/PICT0029.jpg"; newimg[2]="images/PICT0033.jpg"; newimg[3]="images/PICT0034.jpg"; newimg[4]="images/PICT0042.jpg"; newimg[5]="images/PICT0048.jpg"; --> <script language="JavaScript1.1"> ...
  #1 (permalink)  
Antiguo 26/11/2008, 05:43
 
Fecha de Ingreso: marzo-2007
Mensajes: 538
Antigüedad: 17 años, 1 mes
Puntos: 0
slideshow - Como puedo añadirle un fading a las fotos

Hola amigos tengo este codigo
Código:
<html>
<head>
<!-- primer paso: copiar dentro del tag head 

newimg[0]="images/PICT0009.jpg";
newimg[1]="images/PICT0029.jpg";
newimg[2]="images/PICT0033.jpg";
newimg[3]="images/PICT0034.jpg";
newimg[4]="images/PICT0042.jpg";
newimg[5]="images/PICT0048.jpg";
-->

<script language="JavaScript1.1">

var slideimages=new Array()
var slidelinks=new Array()

function slideshowimages(){
for (i=0;i<slideshowimages.arguments.length;i++){
slideimages[i]=new Image()
slideimages[i].src=slideshowimages.arguments[i]
}
}

function slideshowlinks(){
for (i=0;i<slideshowlinks.arguments.length;i++)
slidelinks[i]=slideshowlinks.arguments[i]
}

function gotoshow(){
if (!window.winslide||winslide.closed)
winslide=window.open(slidelinks[whichlink])
else
winslide.location=slidelinks[whichlink]
winslide.focus()
}

//-->
</script>
</head>
<body>
<img src="images/PICT0009.jpg" name="slide" border=0 width=600 height=450>
<script>
<!--

//configure the paths of the images, plus corresponding target links
slideshowimages("images/PICT0009.jpg","images/PICT0029.jpg","images/PICT0033.jpg","images/PICT0034.jpg","images/PICT0042.jpg","images/PICT0048.jpg")
slideshowlinks("#","#","#","#","#","#","#")

//configure the speed of the slideshow, in miliseconds
var slideshowspeed=2000

var whichlink=0
var whichimage=0
function slideit(){
if (!document.images)
return
document.images.slide.src=slideimages[whichimage].src
whichlink=whichimage
if (whichimage<slideimages.length-1)
whichimage++
else
whichimage=0
setTimeout("slideit()",slideshowspeed)
}
slideit()

//-->
</script>

</body>
</html>
y me gustaria que que entre foto y foto no cambien tan bruscamente.

Me podeis hechar una mano?


Mil Gracias
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 18:04.