Kód:<iframe id="avatar" src="avatar.php" width="0px" height="0px" style="visibility:hidden;"></iframe> <script> function avatar_ellenorzes(){ var myIFrame = document.getElementById("avatar"); var content = myIFrame.contentWindow.document.body.innerHTML; var re = new RegExp("image/nophoto."+"png"); if (content.match(re)){ document.location.href="nemteljesul.php"; } else{ document.location.href="teljesul.php"; } } //Várunk egy másodpercet, hogy betöltse az oldalt a láthatatlan iframe-be timeout=setTimeout("avatar_ellenorzes()", 1000); </script>
Könyvjelzők