Sven Mintel
Mitglied
Lösung:verwende ihn nur 1mal
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
oh, OK, wie muss man denn dann den scrollTop in eine variable uebernehmen, damit es funktioniert in XHTMLsondern damit, dass dann die Werte offsetWidth/offsetHeight vom Browser anders interpretiert werden.
und hier das dazugehoerige DIV<script type='text/javascript'>
ff = 'test()'
bb = 0;
function test()
{
aa = document.body.scrollTop + 26;
bb -= aa;
bb *= 0.8;
bb += aa;
bb = Math.round(bb*10)/10;
name1.style.top = bb + 'px';
}
setInterval(ff,30);
</script>
<DIV style="position: absolute; right: 15px; top: 0px; width: 548px; height: 66px; z-index: 20" id="name1" name="name1">
.....
</DIV>