I came up with some code for a website I am making, and I was wondering how you would change the size of the image on the page
Code:
<html>
<head>
<style type="text/css">
.bg {
background: url(http://fc05.deviantart.net/fs48/i/2009/235/2/5/clouds_over_california_by_Un_symmetrical.jpg) center top;
height: 30%;
}
</style>
<script src="jquery.js"></script>
<script>
var bgPos = 0;
setInterval(function() {
$(".bg").css("background-position", (bgPos-= 2) + "px");
}, 60);
</script>
</head>
<body>
<div class="bg"></div>
</body>
</html>