hoot said:
Amric said:
What about a rotating image that may change each time the page is refreshed? You can add weight to each picture, giving more weight to the trucks owned by the majority of posters.
I can send example code if your interested.
I like that idea
/* Option 1 even distribution */
<script language=javascript>
var ImageSources = new Array(4);
ImageSources[0] = "/Images/Gmc.jpg";
ImageSources[1] = "/Images/Chevy.jpg";
ImageSources[2] = "/Images/Ford.jpg";
ImageSources[3] = "/Images/Dodge.jpg";
var i = Math.random() * 4;
document["rotatorImage"].src = ImageSources[Math.floor(i)];
</script>
/* Option 2 weighted distribution */
<script language=javascript>
var image = document["rotatorImage"];
var i = Math.random() * 100;
if(i<=45) {
image.src = "/Images/Gmc.jpg";
} else if(i<=90) {
image.src = "/Images/Chevy.jpg";
} else if(i<=95) {
image.src = "/Images/Ford.jpg";
} else {
image.src = "/Images/Dodge.jpg";
}
</script>