var jugghtml = ""; juggCook = document.cookie; juggcookiename = juggCook.substr(0,juggCook.search('=')); if(juggcookiename != "juglayer") { jugghtml = '
Juggler.de
X
'; document.write(jugghtml); } var juggtimer; var juggh = -450; // set this to the same value of the top property for the pa div in the style sheet var juggw = 250; // set this to the same value of the width property for the pa div in the style sheet, smaller to move it to the right, larger to move it to the left var juggt = 100; // set this to the actual pixel distance from the top where you want the pa div to be at the end of the descent function startAp() { if(intjugg != "true") showAp(); } function hideAp() { document.cookie = 'juglayer=close;'; if (document.layers) document.layers.pajug.visibility = 'hide'; else if (document.all) document.all.pajug.style.visibility = 'hidden'; else if (document.getElementById) document.getElementById("pajug").style.visibility = 'hidden'; } function showAp() { state=typeof tPos; if(state=='undefined') tPos = juggh; if(tPos < juggt) { tPos+=25; if (document.layers) document.layers.pajug.top = tPos+"px"; else if (document.all) document.all.pajug.style.top = tPos+"px"; else if (document.getElementById) document.getElementById("pajug").style.top = tPos+"px"; } if(juggtimer!=null) clearInterval(juggtimer); juggtimer = setTimeout("showAp()",1000); } function getoPos() { if (document.layers) alert(document.layers.pajug.top); else if (document.all) alert(document.all.pajug.style.top); else if (document.getElementById) alert(document.getElementById("pajug").style.top); } function setLeft() { if (document.layers) document.layers.pajug.left = ((window.innerWidth / 2) - (juggw / 2))+"px"; else if (document.all) document.all.pajug.style.left = ((document.body.offsetWidth / 2) - (juggw / 2))+"px"; else if (document.getElementById) document.getElementById("pajug").style.left = ((window.innerWidth / 2) - (juggw / 2))+"px"; } var objDrag = null; // Element, über dem Maus bewegt wurde var mouseX = 0; // X-Koordinate der Maus var mouseY = 0; // Y-Koordinate der Maus var offX = 0; // X-Offset des Elements, das geschoben werden soll var offY = 0; // Y-Offset des Elements, das geschoben werden soll IE = document.all&&!window.opera; DOM = document.getElementById&&!IE; function init(){ document.onmousemove = doDrag; document.onmouseup = stopDrag; } function startDrag(objElem) { objDrag = objElem; offX = mouseX - objDrag.offsetLeft; offY = mouseY - objDrag.offsetTop; } function doDrag(ereignis) { mouseX = (IE) ? window.event.clientX : ereignis.pageX; mouseY = (IE) ? window.event.clientY : ereignis.pageY; if (objDrag != null) { objDrag.style.left = (mouseX - offX) + "px"; objDrag.style.top = (mouseY - offY) + "px"; } } function stopDrag(ereignis) { if(objDrag && objDrag != null) { objDrag = null; } }