I wanted a banner rotator script so I could display a few different ads/links, and I found this - Javascript: Banner Rotator
Looks pretty good but I'm curious if there's a way to specify the chance that each image shows up. For example if I have 3 banners, I might want #1 to show 80% of the time, #2 to show 15% of the time, and #3 to show 5% of the time. This script looks like it picks one at random so they each have an equal chance of appearing.
Looks pretty good but I'm curious if there's a way to specify the chance that each image shows up. For example if I have 3 banners, I might want #1 to show 80% of the time, #2 to show 15% of the time, and #3 to show 5% of the time. This script looks like it picks one at random so they each have an equal chance of appearing.