// random multiplier should be one less than total numer of images// example path is images/rndfooter/footer1.jpgvar rnd = Math.random();var pic = Math.round(rnd*7)+1;document.write('<img src=images/rndfooter/footer'+pic+'.jpg>')
