I am using an Iframe to load the contents within an iframe every 5 seconds. It works fine. What happens is, it just keeps blinking every time it loads, which is bit annoying.
I want to convert the iframe code to scrolling div so the iframe src contents keep getting loaded every 5 seconds and the blinking should go away.
Here is my code:
My Home Page (INDEX.HTML) has:
<iframe src="messages.php#bottom" width="674" height="476" frameborder="0" name="main" allowtransparency="yes" scrolling="auto"/></iframe>
The Contents of Messages.php is like this
<html>
<head>
<script>
window.onload = function() { setTimeout("window.location.href='messages.php';", 5000) }; // 5000 = 2 seconds (it's in milliseconds)
</script>
</head>
<body>
<?php Application.logs ?>
</body>
</html>
I am trying to use this file:
https://gist.github.com/aklump/5470863 - but not able to spin my head around how to do it