Das Bild wird nur EIN MAL geändert.
Hier noch mal der Code:
<html>
<head>
<title>JS-Test</title>
</head>
<body>
<img src="icon1.jpg">
<script type="text/javascript">
<!--
var Bool = true;
function change()
{
if (Bool = true)
{
document.images[0].src = "icon2.jpg";
Bool = false;
}
else
{
document.images[0].src = "icon1.jpg";
Bool = true;
}
}
setInterval("change()", 1500);
//->
</script>
</body>
</html>
Isch kapier dat einfach nicht