Hallo,
Ich habe jetzt folgendes:
Aber irgendwie geht das noch nicht...
Grüße
Thomas
----------------
<html>
<head>
<title>Dynamische grafische Buttons</title>
<script type="text/javascript">
var sec;
Normal1 = new Image();
Normal1.src = "button1.gif"; /* erste Standard-Grafik */
Highlight1 = new Image();
Highlight1.src = "button1h.gif"; /* erste Highlight-Grafik */
/* usw. fuer alle weiteren zu benutzenden Grafiken */
function Bildwechsel(Bildnr,Bildobjekt) {
window.document.images[Bildnr].src = Bildobjekt.src;
}
function count(sec) {
sec++;
if(sec < 10) {
document.getElementById('counter').style.display = "block";
document.getElementById('standard').style.display = "none";
}
if(sec == 10) {
window.location.href='neueseite.html'
}
//alert(sec)
window.setTimeout(eval("count(" + sec + ")"), 1000);
}
</script>
<style type="text/css">
#counter { display:none; }
</style>
</head>
<body bgcolor="#FFFFC0" text="#000000">
<img id="standard" src="button1.gif" width="130" height="30" border="0" alt="Home" onclick="count(0)" onmouseover="Bildwechsel(0,Highlight1)" onmouseout="Bildwechsel(0,Normal1)">
<div id="counter">
<img id="counterimage" src="button3.gif" width="130" height="30" border="0" alt="Home">
<br>de.php wrid geldaen
</div>
</html>