Hi Martin,
Ich dachte, Du willst diese Position erst aus der absoluten Monitorgröße ermitteln?
Ja,aber wo muss ich das bei dem schwebendem Menue(Flash) eingeben ?
Hier das Script zum Fliegen, ist übrigens auch noch ein Fehler drin, im Explorer kommt manchmal eine Fehlermeldung :
self.onError=null;
currentX = currentY = 0;
whichIt = null;
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;
function heartBeat() {
if(IE) {
diffY = document.body.scrollTop;
diffX = document.body.scrollLeft;
}
if(NS) {
diffY = self.pageYOffset;
diffX = self.pageXOffset;
}
if(diffY != lastScrollY) {
percent = .1 * (diffY - lastScrollY);
if (percent > 0)
percent = Math.ceil(percent);
else
percent = Math.floor(percent);
if(IE)
document.all.floater.style.pixelTop += percent;
if(NS)
document.floater.top += percent;
lastScrollY = lastScrollY + percent;
}
if(diffX != lastScrollX) {
percent = .1 * (diffX - lastScrollX);
if(percent > 0)
percent = Math.ceil(percent);
else
percent = Math.floor(percent);
if(IE)
document.all.floater.style.pixelLeft += percent;
if(NS)
document.floater.left += percent;
lastScrollX = lastScrollX + percent;
}
}
if(NS || IE) action = window.setInterval("heartBeat()",1);
und die css anweisung ist :
#floater {position: absolute;left: 800;top: 10;width: 155;visibility: visible; z-index: 1;