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 4576556
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T20:13:22+00:00 2026-05-21T20:13:22+00:00

I am using this image rotator. It’s great, but if I link to it

  • 0

I am using this image rotator. It’s great, but if I link to it multiple times on one page, it displays the same image. I don’t know how many times it will be accessed, so using multiple identical scripts is impractical.
How do I modify this script so that I can get a different image elsewhere on the page while using the same url? Is it possible?

EDIT: It turns out that there must have been some problem with the coding. I found a better code here, and it works if I use different queries on each link. Thanks to everyone who submitted answers!

  • 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-05-21T20:13:23+00:00Added an answer on May 21, 2026 at 8:13 pm

    Pass a different query string for each instance so that the browser retrieves it multiple times.

    Your browser is seeing that each “rotated” image uses the same URL, so it caches the resulting image from the first request.

    You can change this behaviour in two ways.

    1. Suffix your “rotated” image URLs with a random string from php. Eg (“rotate.php?img=my_static_image.jpg&x=12345” This means the browser makes a fresh request for each image.

    2. Make your rotate scrip redirect to a randomized url if it recives no extra parameters.

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

Sidebar

Related Questions

I am using this script to display an image preview for users when they
My company doc pages need to be laid out as specified in this image
I am loading images in background . using this code -(void)backgroundImageLoading { if(isGroupOrFriend) {
I have recently started looking into using Azure but I'm having some issues getting
Hi i am getting the following exception while fetching the image from server. I
Stasm (http://www.milbo.users.sonic.net/stasm/index.html) is a C++ library for finding features on image, applying the concept
I want to display the images present in my database on the Scroll view.Also
Cross-posted from the Cukes Google Group: I have experimented with a number of methods
I have 2 or 3 hough lines drawn on the edges of the road
I am learning pygame and want a graphic for a button with the three

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.