Well, I am a newbie really and I wanted to share a very basic barebones mini script for rotating content using basic DOM functionality in JS.
I know, newbie script but I figure someone will find this useful to copy and paste into a website for banner rotation or something. I remember this being more lengthy back in 1998 for some reason!
//place images, text, or html in the spinArray quotes
var spinArray = [":D", ":O", ";)", ":)"];
//the stereotypical random number generation string
//pass the spinArray data to the inside of the HTML tag with the Id of "rotation" and pass randomnumber to pass a random number between 0 and 3.
document.getElementById("rotation").innerHTML = spinArray[randomnumber];