<STYLE TYPE="text/css">
<!--
#logo{position: absolute;visibility: hide;}
// -->
</style>
<script language="JavaScript">
<!--
// Bildinformationen
var imgURL = "http://www.javarea.de/banner/anim_banner_k02.gif";
var imgWidth = 136; // Breite
var imgHeight = 30; // Hoehe
// Intervall fuer Positionspruefung in ms
var posInterval= 25;
// Extraabstaende
var extraX = 20; // Abstand fuer vertikalen Rollbalken
var extraY = 20; // Abstand fuer horizontalen Rollbalken
// Position
var wPosition = 3; // 1: oben links, 2: oben rechts, 3: unten rechts, 4: unten links
// Zentrieren des Hintergrundbilds
function positionierung()
{
var ntop;
var nleft;
if(document.logo)
{
with(document.logo)
{
ntop = window.pageYOffset;
nleft = window.pageXOffset;
if(wPosition == 3 || wPosition == 4)
ntop += innerHeight - imgHeight;
if(wPosition == 2 || wPosition == 3)
nleft += innerWidth - imgWidth
if(scrollbars.visible)
{
if(wPosition == 3 || wPosition == 4)
ntop -= extraX;
if(wPosition == 2 || wPosition == 3)
nleft -= extraY;
}
if(ntop != top || nleft != left)
{
top = ntop;
left = nleft;
}
}
}
else if(logo)
{
with(logo)
{
ntop = document.body.scrollTop;
nleft = document.body.scrollLeft;
if(wPosition == 3 || wPosition == 4)
ntop += Number(document.body.clientHeight) - imgHeight;
if(wPosition == 2 || wPosition == 3)
nleft += Number(document.body.clientWidth) - imgWidth;
if(ntop != style.top || nleft != style.left)
{
style.top = ntop;
style.left = nleft;
}
}
}
else
return
}
// Initialisierung der Darstellung
function init()
{
if(document.logo)
with(document.logo.document)
{
open("text/html")
write("<A HREF=\"http://javarea.de\" onClick=\"positionierung(); return true\">"+
"<IMG SRC=\"" + imgURL + "\" BORDER=0 WIDTH=" + imgWidth + " "+
"HEIGHT=" + imgHeight + " ALT=\"Seitenanfang\"></A>");
close()
width = imgWidth;
height = imgHeight;
}
else if(logo)
with(logo)
{
innerHTML = "<A HREF=\"http://javarea.de\" onClick=\"positionierung(); return true\"> "+
"<IMG SRC=\"" + imgURL + "\" BORDER=0 WIDTH=" + imgWidth + " "+
"HEIGHT=" + imgHeight + " ALT=\"Seitenanfang\"></A>"
style.width = imgWidth;
style.height = imgHeight;
}
else
return
positionierung()
if(document.logo)
document.logo.visibility = "show";
else
logo.visibility = "visible";
setInterval("positionierung()", posInterval)
}
// -->
</script>
<DIV ID="logo"></DIV>
<body onload="init()" onResize="positionierung()" onScroll="positionierung()"> |