Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
HTML FORUM QUESTION: How can I switch the banner of my forum every time the page loads?
I've seen this done before, but I don't know that much of html. Basically what I'm looking for is an html script for putting different banners so that everytime the page loads, I'll see a different one. How could I do this?
1 Answer
- 1 decade agoFavorite Answer
Javascript!
You're going to want "random" banners. So if you wanted to cycle through 10 different banners, make 10 images (or whatever they are) and call them banner1.jpg, banner2.jpg, etc...
Then, in javascript get a random number from 1 to 10 and include that image. Do a search for "javascript random image" and you should get a bunch of similar stuff.