0
У меня проблема с несколькими перекрестными браузерами. Кажется, я не могу заставить свой код работать в IE. Если кто-то может обнаружить ошибку, я бы очень признателен:Проблема с браузером с IE и сценарием jQuery
$(document).ready(function() {
var timerId = 0;
$('#timerwrap').ready(function() {
$('#timerwrap').html("Please wait <strong id='show-time'>5</strong>");
console.log(timerId)
if (timerId == 0) {
timerId = window.setInterval(function() {
var timeCounter = $("#show-time").html();
var updateTime = parseInt(timeCounter, 10) - 1;
$("#show-time").html(updateTime);
if (updateTime <= 0) {
clearTimeout(timerId);
$('#timerwrap').html("<a href='http://2ga.in/push/<?php echo("$item[seo]"); ?>/' target='_parent' title='Continue to <?php echo("$item[title]"); ?>'>Continue to...</a>");
}
}, 1000);
}
});
});
что код должен делать? что не так? –
Его код обратного отсчета –
Правильный отступ кода является признаком уважения к другим. –