![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
28/06/2002, 22:35
|
![Avatar de Wakkos](http://static.forosdelweb.com/customavatars/avatar10688_2.gif) | Colaborador | | Fecha de Ingreso: octubre-2001 Ubicación: (cerca)
Mensajes: 1.795
Antigüedad: 23 años, 4 meses Puntos: 59 | |
Re: slide show Yo hice algo que te puede servir en www.jimenezcortabitarte.com en la sección así construimos.
A ver, el script:
Código:
<SCRIPT language=JavaScript>
window.onerror = null;
window.defaultStatus ="";
function removeFocus() {
for (i = 0; i < document.links.length; i++) {
document.links[I].onfocus = document.links.blur;
}
}
flag = true;
function MoveLayer(n,Xf){
if(document.images && flag == true){
flag = false;
if (document.layers){
Xs = parseInt(document.layers[n].left);
setTimeout("flag = true;",31*30);
for(I = 1; I <= 50; I++){
Xp = Xs+((Xf-Xs)*I/50);
window.status = Xp;
setTimeout("document.layers."+n+".left = '"+Xp+"'", I*30);
}
}
else if (document.all){
Xs = parseInt(document.all[n].style.left);
setTimeout("flag = true;",31*30);
for(I = 1; I <= 60; I++){
Xp = Xs+((Xf-Xs)*I/60);
setTimeout("document.all['"+n+"'].style.left = '"+Xp+"px'", I*15);
}
}
else if (document.getElementById &&! document.all){
Xs = parseInt(document.getElementById(n).style.left);
setTimeout("flag = true;",31*60);
for(I = 1; I <= 30; I++){
Xp = Xs+((Xf-Xs)*I/30);
setTimeout("document.getElementById('"+n+"').style.left = '"+Xp+"px'", I*20);
}
}
flag
}
}
// window.onload = new Function("if(document.images) myScroll();");
</SCRIPT>
Luego, defines tantas capas según imágenes tengas:
(no cabe, otra página -->) |