Hey all,

I have an auto refresh script i use on my site which is below...

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script>
<script type="text/javascript">
var auto_refresh = setInterval(
function ()

{
$('#load_tumblr').load('tumblr_blog.php').fadeIn("slow");
}, 5000);
</script>

<div id='load_tumblr'>Loading...</div>

Im wondering if i would be able to have an option for users to turn off the auto update script? Just a simple ON | OFF link to turn off/on this script?

Thanks for your help!

Please use if condition and use it on on and off button

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.