tips = new Array(2); tips[0] = '
'; tips[1] = '
'; index = Math.floor(Math.random() * tips.length); document.write(tips[index]);