Thomas J.S.: Wie geht das?

Beitrag lesen

...

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);
}

»

das geht auch einfacher:
------
function count() {
  document.getElementById('counter').style.display = "block";
  document.getElementById('standard').style.display = "none";
  window.setTimeout("window.location.href='wasauchimmer.html'", 10000);
 }
------

und dann  <img id="standard" ...  onclick="count()" .... >

der Rest ist dasselbe.

Grüße
Thomas