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
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.
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/
jQuery version
Example: http://jsfiddle.net/patrick_dw/5drgu/7/
(changed it a bit so it doesn’t start with an empty
<img>)html
Original answer:
Here’s one way:
Example: http://jsfiddle.net/patrick_dw/5drgu/
html