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

  • SEARCH
  • Home
  • 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 7907471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T11:27:20+00:00 2026-06-03T11:27:20+00:00

I saw just wondering how it would be possible to change a src every

  • 0

I saw just wondering how it would be possible to change a src every say 5 seconds,

I am using

$.backstretch("site.com/images/home5.jpg");

Is it possible to swap ‘home5.jpg’ with other image (say home6.jpg and home7.jpg) like a slideshow? I’m not sure how to change it dynamically

  • 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-03T11:27:22+00:00Added an answer on June 3, 2026 at 11:27 am

    If you wanted to change it every 5 seconds you’d need to use setInterval():

    var loop = 1;
    setInterval(function() {
        var imgNumber = loop % 5; // assuming there are 5 images.
        $.backstretch("site.com/images/home" + imgNumber + ".jpg");
        loop++;
    }, 5000);
    

    UPDATE

    After reading the documentation it appear this functionality is built into the plugin already:

    http://srobbin.com/jquery-plugins/backstretch/

    Choose ‘Using backstretch in a slideshow’ for the code.

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

Sidebar

Related Questions

Just saw a view in iOS settings page, wondering how to create it, it
I just saw this code: artist = (char *) malloc(0); ...and I was wondering
I'm new to SQL and was just wondering how I would a value from
I saw this in a screencast and was just wondering what the '=' symbol
I am just wondering how would you add an optional grammer in the rule
Just couple of days ago I saw my friend was using Microsoft Visual studio
I just saw this browser here: http://www.dietriffic.com/ Now, the green section at the top,
Just wondering about this, is it possible to use Django with the Google Apps
I just saw this code if ((fsi.Attributes & FileAttributes.Directory) == FileAttributes.Directory) { //... }
I just saw this mentioned in Stack Overflow question Best WYSIWYG CSS editor and

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.