// JavaScript Document /*********************************************** * Random Video Script- © * Author: Raymond Angana * rangana in AHFB2000.com * modified last May 2, 2008 * This notice MUST stay intact for legal use ***********************************************/ var v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,rangVideo; /********************************Edit this part for the videos*********************************/ v1=''; v2=''; v3=''; v4=''; v5=''; v6=''; v7=''; v8=''; v9=''; v10=''; v11=''; v12=''; /********************************************************************************************/ rangVideo=[v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12]; // This depends on the number of videos you have. window.onload=function() { rangProc=Math.floor(Math.random()*rangVideo.length); document.getElementById('display').innerHTML=rangVideo[rangProc]; }