$(document).ready(function(){
setInterval(function(){
$('.bopa').load('accounts.php');
},30000);
});
Hi guys! Me again. So I got back to this stuff and I realized that this is JQuery. It maybe possible for me to put a fade effect somewhere there. I just don’t konw where. Is it actually possible if so please tell me where. The accounts php actualy contains something like
$command=mysql_query("SELECT * FROM pages order by rand() limit 1");
now it works every 3 seconds the content changes. I am trying it on text first so that it’d be easier. Later on I’m planning to do it on pictures.
You can add a callback function to the AJAX request you’re making:
Could change to:
This also takes advantage of the callback functions for the jQuery animation functions used (
.fadeIn()/.fadeOut()).