This script takes an unordered list and randomly displays one item on each page load (reload to test).
this.randomtip = function(){
var length = $("#tips li").length;
var ran = Math.floor(Math.random()*length) + 1;
$("#tips li:nth-child(" + ran + ")").show();
};
$(document).ready(function(){
randomtip();
});
This script is supported by Css Templates by Templatica