Page 1 of 1

Need help with reload banners in a div

Posted: Tue 4. Dec 2012, 23:19
by tellus
Hi,

I don't now how to reload my banners in a div. I find some solutions, but this dosen't work om my page. I am using a banner manager phpAdsNew.

The page an talking aboute is http://www.dinlokaltidning.se

Re: Need help with reload banners in a div

Posted: Wed 5. Dec 2012, 06:45
by Oliver Georgi
Let us guess you have a browser running with an AdBlocker — that's the reason why…

Re: Need help with reload banners in a div

Posted: Wed 5. Dec 2012, 12:03
by tellus
No is not that...

I want the banners to reload every 30 seconds whitout the wholw page reloads.

This is the onlt solution i find, but I don't no how to apply it....

Code: Select all

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script> 
<script> 
var auto_refresh = setInterval(
function()
{
$('#loaddiv').fadeOut('slow').load('reload.php').fadeIn("slow");
}, 30000);
</script>


I found it on this page: http://designgala.com/how-to-refresh-div-using-jquery/

/Anders

Re: Need help with reload banners in a div

Posted: Wed 5. Dec 2012, 12:49
by Oliver Georgi
you need Ajax for this. But you use so many banners on the page… You need concept first what should be loaded from where. I guess phpAdsNews can deliver code that does auto refresh itself.

Re: Need help with reload banners in a div

Posted: Wed 12. Nov 2014, 21:52
by update
could something like that be used for the banner module anyhow to show up a randomly sorted banner list? Right now it is reloading the banners with loading a new page...

Re: Need help with reload banners in a div

Posted: Wed 12. Nov 2014, 22:29
by Oliver Georgi
anything can be customized