Ich will, das ein Layer bei einer längeren Seite mit nach unten scrollt....
Im Grunde hab ichs ja soweit funktionstüchtig oder Mozilla macht probleme.
Hat einer evtl. Ahnung und kann mir helfen? Bin absolut Ratlos
[wenn jmd. ne ganz andere lösung hat würde ich sie auch gerne sehen
]
hier... drum gehts....
das wäre der layer um den es geht
und das die Funktion
Im Grunde hab ichs ja soweit funktionstüchtig oder Mozilla macht probleme.
Hat einer evtl. Ahnung und kann mir helfen? Bin absolut Ratlos
hier... drum gehts....
das wäre der layer um den es geht
<div id="scraper" style="position: absolute; left: 800px; top: 0px; text-align: center; z-index: 1;">
guck mal<br>
ich gehe dahin<br>
wo du<br>
guckst<br>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
und das die Funktion
<script language="JavaScript1.2" type="text/javascript">
<!--
IE = (document.all);
NS = (navigator.appName=="Netscape" && navigator.appVersion >= "4");
if (IE) {var NM=scraper.style}
if (NS) {var NM=document.scraper}
yPos = 0;
lastYPos = yPos;
if (IE) {NM.pixelTop=yPos}
if (NS) {NM.top=yPos}
function moveScrapper() {
if (IE) {winY = document.body.scrollTop}
if (NS) {winY = window.pageYOffset}
if (IE) {y = NM.pixelTop}
if (NS) {y = NM.top}
if ((IE||NS) && y-winY!=yPos) {
smooth = .04 * (yPos-(y-winY));
if (smooth > 0) smooth = Math.ceil(smooth);
else smooth = Math.floor(smooth);
if (IE) {
NM.pixelTop+=smooth;
lastYPos=NM.pixelTop;
}
if (NS) {
NM.top+=smooth;
lastYPos=NM.top;
}
}
setTimeout('moveScrapper()',1);
}
setTimeout('moveScrapper()',1);
//-->
</script>