Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ##############
- # BY PHX #
- ##############
- */
- d = document;
- function loop(page, element_id, speed) {
- FRM = "FRM_" + new Date().getTime();
- ajax = d.createElement("iframe");
- ajax.src = page;
- ajax.id = FRM;
- ajax.style.display = "none";
- d.head.appendChild(ajax);
- ajax.onload = function () {
- d.getElementById(element_id).innerHTML = (d.getElementById(FRM).contentWindow.document.body.innerHTML);
- setTimeout("loop(page, element_id, speed)", speed * 1000);
- };
- };
- loop('/tal_pag.php', 'id_do_elemento', 3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement