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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:53:30+00:00 2026-05-18T08:53:30+00:00

Pretty much as the title. I have been asked if it is possible to

  • 0

Pretty much as the title. I have been asked if it is possible to have a specific banner shown in a section on a website on different days without any external user input.

My first thoughts are the use of javascript/jquery. We are limited with the functionality however as the site is controlled by the horror that is Netsuite.

Any help/ideas are appreciated 🙂

-Wayne

  • 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-18T08:53:31+00:00Added an answer on May 18, 2026 at 8:53 am

    EDIT: With regard to your comment, it sounds like you want to load a different slideshow depending on the day of the week.

    Here’s a simple generic example of how it could be done.

      // Insert the code that loads the individual slideshows in the functions below
    var slideshows = [
        function() { /* insert code to load some slideshow */ },
        function() { /* insert code to load some other slideshow */ },
        function() { /* insert code to load a different slideshow */ },
        function() { /* insert code to load yet another slideshow */ }
    ];
      // call a slideshow function depending on the day of week
    slideshows[ new Date().getDate() % slideshows.length ]();
    

    This will call a different function from the Array depending on the day of week. You don’t need seven of them. It will automatically rotate.

    There are other ways to approach this, but I’d need to see how the slideshows are set up. This is a simple approach.

    If you have more than 7 different slideshows, it will need to be changed a bit.


    EDIT: This answer assumes you meant different per day of week. Not sure if that was your intention.


    This is probably better than my original answer since it doesn’t require loading all the banners.

    javascript only version

    Example: http://jsfiddle.net/patrick_dw/5drgu/4/

    var banners = [
        "http://dummyimage.com/120x90/f00/fff.png&text=my+image",
        "http://dummyimage.com/120x90/0f0/fff.png&text=my+image",
        "http://dummyimage.com/120x90/00f/fff.png&text=my+image",
        "http://dummyimage.com/120x90/ff0/fff.png&text=my+image"
        ];
    var banner = new Image();
    banner.src = banners[ new Date().getDate() % banners.length ];
    document.getElementById('container').appendChild( banner );
    

    jQuery version

    Example: http://jsfiddle.net/patrick_dw/5drgu/7/

    (changed it a bit so it doesn’t start with an empty <img>)

    var banners = [
        "http://dummyimage.com/120x90/f00/fff.png&text=my+image",
        "http://dummyimage.com/120x90/0f0/fff.png&text=my+image",
        "http://dummyimage.com/120x90/00f/fff.png&text=my+image",
        "http://dummyimage.com/120x90/ff0/fff.png&text=my+image"
        ];
    var banner =  $('<img>', { src:banners[ new Date().getDate() % banners.length ]})
                              .appendTo('#container');
    

    html

    <div id='container'></div>
    

    Original answer:


    Here’s one way:

    Example: http://jsfiddle.net/patrick_dw/5drgu/

    var banners = $('#container img').hide();
    banners.eq( new Date().getDate() % banners.length ).show();
    

    html

    <div id='container'>
       <img src = "http://dummyimage.com/120x90/f00/fff.png&text=my+image" />
       <img src = "http://dummyimage.com/120x90/0f0/fff.png&text=my+image" />
       <img src = "http://dummyimage.com/120x90/00f/fff.png&text=my+image" />
       <img src = "http://dummyimage.com/120x90/ff0/fff.png&text=my+image" />
    </div>
    

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

Sidebar

Related Questions

hey the title pretty much says it all. i have been trying different methods
My question is pretty much what the title says: Is it possible to have
My title pretty much says it all. I have been looking at mod_pagespeed and
title pretty much says it all. I have a website which will only run
Pretty much what the title says really. We have some code that is .NET
The question is pretty much in the title, but I will elaborate. I have
Title pretty much tells everything. Is it possible to get current bandwidth usage in
The title, while long, pretty much says it all. What I have is a
The question is pretty much the title. I have a 3d volume loaded as
The title pretty much says it. I have some methods that need to run

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.