Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8050823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:09:53+00:00 2026-06-05T07:09:53+00:00

$(document).ready(function(){ setInterval(function(){ $(‘.bopa’).load(‘accounts.php’); },30000); }); Hi guys! Me again. So I got back to

  • 0
$(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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T07:09:54+00:00Added an answer on June 5, 2026 at 7:09 am

    You can add a callback function to the AJAX request you’re making:

    $('.bopa').load('accounts.php');
    

    Could change to:

    //start by fading-out the element(s)
    $('.bopa').fadeOut(250, function () {
        //continue by loading the new content now that the element(s) has/have faded-out
        $(this).load('accounts.php', function () {
    
            //now that the new content has loaded, fade the element(s) back in
            $(this).fadeIn(250);
        });
    });
    

    This also takes advantage of the callback functions for the jQuery animation functions used (.fadeIn()/.fadeOut()).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have got code like this var challegneListener; $(document).ready(function(){ var challegneListener = setInterval(challengeListenerBot(),5000); });
javascript snippet : <script type=text/javascript> $(document).ready(function() { setInterval(function() { $.getJSON('notif.php', function(data) { my_var =
$(document).ready(function(){ setInterval(function(){ $.ajax({ url: getLiveData.php, success: function(result){ $.each(result, function(i, result){ var t = $(table#insideTable);
<script type=text/javascript> $(document).ready(function(){ setInterval(spinna, 3000); var index = 0, imgs = ['bg2.jpg', 'scrib.jpg']; function
$(document).ready(function() { $(.rshownews).click(function() { window.setInterval(function() {ajaxselectrss($(this).attr(title))}, 1000); }); }); function ajaxselectrss(rssurlvar) { var ajaxRequest;
Currently im polling/checking every 1000ms by doing a GET to /moves: jQuery(document).ready(function() { setInterval(function()
$(document).ready(function(){ setInterval(swapImages(),1000); function swapImages(){ var active = $('.active'); var next = ($('.active').next().length > 0)
<script> $(document).ready(function() { setInterval(doAjaxStuff, 500); }); function doAjaxStuff() { /* $.ajaxSetup ({ cache: false
$(document).ready(function(){ var refreshId = setInterval(function() { periodicRefresh(); }, 9000); }) . function periodicRefresh() {
i have code function smena(){ $('.wrapper').animate({opacity:0},2500,function(){ setTimeout ($('.wrapper').animate({opacity:1},2500),5000) }); } $(document).ready(function(){ setInterval('smena();',10000); }); why

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.