Need help with reload banners in a div

If you've problems with unsupported - non official ;-) - functionalities use this forum please.
Post Reply
tellus
Posts: 94
Joined: Tue 17. Feb 2004, 18:53
Location: Sweden
Contact:

Need help with reload banners in a div

Post 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
User avatar
Oliver Georgi
Site Admin
Posts: 9888
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Need help with reload banners in a div

Post by Oliver Georgi »

Let us guess you have a browser running with an AdBlocker — that's the reason why…
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
tellus
Posts: 94
Joined: Tue 17. Feb 2004, 18:53
Location: Sweden
Contact:

Re: Need help with reload banners in a div

Post 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
User avatar
Oliver Georgi
Site Admin
Posts: 9888
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Need help with reload banners in a div

Post 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.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Need help with reload banners in a div

Post 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...
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
Oliver Georgi
Site Admin
Posts: 9888
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Need help with reload banners in a div

Post by Oliver Georgi »

anything can be customized
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply