Allora, è una galleria esempio che ho trovato proprio su html.it.
corrispondeva a quello che avevo in mente e l'ho modificata.
Ecco il js dell' head:
<SCRIPT LANGUAGE="JavaScript">
NewImg = new Array (
"images/1.gif",
"images/2.gif",
"images/3.gif"
);
var ImgNum = 0;
var ImgLength = NewImg.length - 1;
var delay = 3000;
var lock = false;
var run;
function chgImg(direction) {
if (document.images) {
ImgNum = ImgNum + direction;
if (ImgNum > ImgLength) {
ImgNum = 0;
}
if (ImgNum < 0) {
ImgNum = ImgLength;
}
document.slideshow.src = NewImg[ImgNum];
}
}
function auto() {
if (lock == true) {
lock = false;
window.clearInterval(run);
}
else if (lock == false) {
lock = true;
run = setInterval("chgImg(1)", delay);
}
}
</script>
ecco quello del body:
<div align="center" style="background-color:white;padding:3px">
<table width="100">
<tr>
<td>[img]Prev.jpg[/img]</td>
<td>[img]images/1.gif[/img]</td>
<td>[img]Forw.jpg[/img]</td>
</tr>
</table>
I pulsanti sono delle semplici jpg che ho prima creato in illustrator e poi portate in photoshop.
Dato che posso allegare solo un documento ti invio solo "avanti".
Se avete bisogno di qualcos'altro chiedete.
Grazie ancora.
![]()