this javascript does not work on IE 8, in chrome and firefox it does.
The complete site is found here
<script type="text/javascript">
function get_random()
{
var ranNum= Math.floor(Math.random()*35);
return ranNum;
}
function pickBG(){
var i = 1 + get_random();
console.log(i);
document.body.style.backgroundImage="url('/pand_89/CI/images/bgSet/" + i + ".jpg')";
}
DO i need a different doctype or something?
Thanks!
console.log()does not work in IE unless the F12 console is open. Remove it or check to see if the console object is defined before using it.