...

View Full Version : Rolling background



menhir
01-20-2005, 03:58 PM
Hi,

I would like to make the background on a webpage rolling like it does on an old b/w TV. Is it possible to do it? How?

Thanks,

Johan

rmedek
01-20-2005, 10:30 PM
If it wasn't too big you could use an animated gif to do it... Otherwise it'd be best to use Flash or something similar. How much of the screen do you want to roll?

hemebond
01-21-2005, 02:11 AM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>50667</title>
<style type="text/css">
html
{
background:#fff url(/images/1.jpeg) 0 0 fixed;
}
</style>
<script type="text/javascript">
var y = 0;
var step = 2;

function move_image()
{
y += step;
document.getElementsByTagName("html")[0].style.backgroundPosition = "0px " + y + "px";
}

setInterval("move_image()",50);
</script>
</head>
<body>
<p>Text</p>
</body>
</html>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum