I read here that I can position my div background image using:
var yValue = 20;
document.getElementById('a1').style.backgroundPosition = '0px ' + yValue + 'px';
But how would I do this for the body
background-position
using JavaScript, does the body take an id = 'bodyname'
for the getElementById()
function parameter?
<!DOCTYPE html>
<html>
<head>
<style>
body
{
background-image: url('image.gif');
background-repeat: repeat;
background-attachment:fixed;
background-position: 77px 100px;
}
</style>
</head>
<body>
</body>
</html>