I have a code that shows a random background everytime I refresh, but I have no idea how I can make all images width100% and heigth 100%. Here's my code:
<html>
<head>
<script type="text/javascript">
var totalCount = 3;
function ChangeIt()
{
var num = Math.ceil( Math.random() * totalCount );
document.body.background = 'bg'+num+'.png';
document.body.style.backgroundRepeat = "repeat";// bg repeat.
}
</script>
</head>
<body>
----
</body>
<script type="text/javascript">
ChangeIt();
</script>
</html>
Any idea how to do this?