questo ?
<script language="javascript1.2">
var secs;
var count;
function Start() {
secs="5";
setTimeout("countDown()",1000);
document.getElementById("play_img").src="images/slide_pause.gif";
document.getElementById("play_img").alt="Pause Slideshow";
document.getElementById("play_a").href="javascript:Stop();";
document.getElementById("progbar").width="80";
}
function Stop() {
if (count) { clearTimeout(count); }
document.getElementById('play_img').src='images/slide_play.gif';
document.getElementById('play_img').alt='Start Slideshow';
document.getElementById('play_a').href="javascript:Start();";
document.getElementById('progbar').width='0';
}
function countDown() {
if(secs==0) { return; }
secs--;
document.getElementById('progbar').width=(document.getElementById('progbar').width-(80/5));
if(secs<1) { nextImage(); return; }
count=setTimeout("countDown()",1000);
}
</script>