Copie o código do código da seguinte forma:
<!DOCTYPEHTML>
<html>
<cabeça>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Anúncio flutuante JS em tela cheia</title>
<style type="texto/css">
div#roll{largura:100px;altura:100px; cor de fundo:#000;
</estilo>
</head>
<corpo>
<div>
<div><h2>Anúncio flutuante em tela cheia JS, mova o cursor para parar de se mover・Ke Leyi</h2></div>
</div>
<div id="roll">Estou anunciando<br />www.jb51.com</div>
<script type="texto/javascript">
var ggRoll = {
rolo: document.getElementById("rolo"),
velocidade: 20,
statusX: 1,
statusY: 1,
x: 100,
e: 300,
winW: document.documentElement.clientWidth - document.getElementById("roll").offsetWidth,
winH: document.documentElement.clientHeight - document.getElementById("roll").offsetHeight,
Vá: função () {
this.roll.style.left = this.x + 'px';
this.roll.style.top = this.y + 'px';
isto.x = isto.x + (este.statusX? -1: 1)
if (este.x <0) {este.statusX = 0}
if (this.x > this.winW) { this.statusX = 1 }
isto.y = isto.y + (este.statusY? -1: 1)
if (este.y <0) {este.statusY = 0}
if (this.y > this.winH) { this.statusY = 1 }
}
}
var intervalo = setInterval("ggRoll.Go()", ggRoll.speed);
ggRoll.roll.onmouseover = function () { clearInterval (intervalo) };
ggRoll.roll.onmouseout = function () { intervalo = setInterval("ggRoll.Go()", ggRoll.speed) };
</script>
</body>
</html>