<head>
<script> <!-- Защитили текст скрипта
от старых браузеров
var pictures = new Array()
for(i=0;i<5;i++) { pictures[i] = new Image()
if(i==0) pictures[i].src = "1.gif"
if(i==1) pictures[i].src = "2.gif"
if(i==2) pictures[i].src = "3.gif"
if(i==3) pictures[i].src = "4.gif"
}
n=0;
flag=0;
function next_image() {
if(flag==0) {
n++;if(n>3) n=0;
document.images[0].src = pictures[n].src
}
}
function back_image() {
if(flag==0) {
n--;if(n<0) n=3;
document.images[0].src = pictures[n].src
}
}
function scroll_image() {
if(flag==1) {
n++;if(n>3) n=0;
document.images[0].src = pictures[n].src
}
setTimeout("scroll_image()", 1500);
}
function start_stop() {
if(flag==0) {
flag=1
}
else {
flag=0
}
}
// -->
</script>
</head>
<body onLoad="scroll_image()">
<table cellpadding="3" cellspacing="0"> <tr> <td height="20" align=CENTER valign=top >
<a href="javascript:" nclick=next_image()>Назад</a>
<a href="javascript:" onClick=start_stop()>Старт/Стоп</a>
<a href="javascript:" onClick=back_image()>Вперед</a>
</td> </tr> <tr> <td align=CENTER valign=CENTER>
<img src="hlam/1.gif" alt="" name="tool" > </td> </tr> <tr> <td height="20" align=CENTER>
<a href="javascript:" nclick=next_image()>Назад</a>
<a href="javascript:" onClick=start_stop()>Старт/Стоп</a>
<a href="javascript:" onClick=back_image()>Вперед</a>
</td> </tr> </table> |