Silvia: Div am unteren Browserrand ausrichten

Beitrag lesen

Hier ist ein gutes JavaScript, leider richtet sich das DIV nicht nach dem unteren Browserrand aus. Vielleicht kann jemand dieses Script anpassen???

<html>
<head>
<title>Scroller</title>
</head>
<body>
<style type="text/css">#floater3 {
position: absolute;
left: 772;
top: 93;
width: 210;
visibility: visible;
z-index: 10;}
</style>
<div id="floater3">
<a href="web.de"><img src="bild.jpg" border=0></a>
</div>
<SCRIPT LANGUAGE="JavaScript">
stalkery_start = 100;
currentY = stalkery_start;
lastScrollY = 0;
whichIt = null;
self.onError=null;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;
if (IE)
{
stalkery = document.all.floater3.style.pixelTop;
}
if (NS)
{
stalkery_start = 0;
stalkery = document.floater3.top;
}
function heartBeat()
{
if(IE) { diffY = document.body.scrollTop; }
if(NS) { diffY = self.pageYOffset; }
if(diffY != lastScrollY) {
percent = .1 * (diffY - lastScrollY);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
if(IE)
{
stalkery += percent;
document.all.floater3.style.pixelTop = stalkery + stalkery_start;
}
if(NS)
{
stalkery += percent;
document.floater3.top = stalkery + stalkery_start;
}
lastScrollY = lastScrollY + percent;
}
}
if(NS || IE) action = window.setInterval("heartBeat()",1);
</SCRIPT>
</body>
</html>