| Autor | Zpráva | ||
|---|---|---|---|
| kousal Profil |
#1 · Zasláno: 3. 3. 2016, 11:56:49
Dobrý den,
používal jsem tento script pro načtení další stránky po určeném čase: <script>
var countDownInterval=5;
var countDownTime=countDownInterval+1;
function countDown(){
countDownTime--;
if (countDownTime <=0){
countDownTime=countDownInterval;
clearTimeout(counter)
document.write("<BODY BGCOLOR='#230064'>");
document.write("<div id='prekryv' style='position:absolute;left:0px;top:0px;width:100%;height:100%;background-color:#230064;font-family:Verdana;font-size: 20pt;color: #FFFFBB;'>");
document.write("<p> ");
document.write("<p> ");
document.write("<p> ");
document.write("<p> ");
document.write("<center>Načítá se další stránka...</center>");
document.write("</div>");
window.location.replace('astr2a.php?kod=1234&email=aaa@aa.aa');
return;
}
counter=setTimeout("countDown()", 1000);
}
</script>Ten bez problémů funguje na všech prohlížečích a jejich verzích kromě IE 11. Přitom když použiji "location.replace" v tlačítku, je to v pořádku i v IE 11. <button onclick="window.location.replace('astr2a.php?kod=1234&email=aaa@aa.aa')">
Replace document 2</button>Můžete mi prosím někdo poradit, proč script v IE 11 nefunguje? Díky moc. |
||
|
Časová prodleva: 10 let
|
|||
0