M
Martin Nadoll
Hi,
i use the following script for placing html-content while scrolling a page:
var oben;
var showscroll;
var footerdivApplicationScroll;
var scrollTop = document.body.scrollTop ||
document.documentElement.scrollTop;
var scrolLeft = document.body.scrollLeft ||
document.documentElement.scrollLeft;
function scrollLogo() {
var bt = document.body.scrollTop;
var et = document.documentElement ? document.documentElement.scrollTop
: null;
oben=logoMarginTop+(bt || et);
// control the values
showscroll = document.getElementById('showscroll');
showscroll.innerHTML = "Box wird gescrollt " +(bt || et)+" und oben:
"+oben;
// move the layer
footerdivApplicationScroll = document.getElementById('fapp');
footerdivApplicationScroll.style.marginTop = oben+'px';
oben=logoMarginTop;
}
It is fine in all Browsers, but it doesnt work in IE (i have 8.0)
Please dont ask me to position the layer with css...
Has someone a idea or can give me a tipp?
Thanks a lot,
Martin Nadoll
i use the following script for placing html-content while scrolling a page:
var oben;
var showscroll;
var footerdivApplicationScroll;
var scrollTop = document.body.scrollTop ||
document.documentElement.scrollTop;
var scrolLeft = document.body.scrollLeft ||
document.documentElement.scrollLeft;
function scrollLogo() {
var bt = document.body.scrollTop;
var et = document.documentElement ? document.documentElement.scrollTop
: null;
oben=logoMarginTop+(bt || et);
// control the values
showscroll = document.getElementById('showscroll');
showscroll.innerHTML = "Box wird gescrollt " +(bt || et)+" und oben:
"+oben;
// move the layer
footerdivApplicationScroll = document.getElementById('fapp');
footerdivApplicationScroll.style.marginTop = oben+'px';
oben=logoMarginTop;
}
It is fine in all Browsers, but it doesnt work in IE (i have 8.0)
Please dont ask me to position the layer with css...
Has someone a idea or can give me a tipp?
Thanks a lot,
Martin Nadoll