// $Id: help.js,v 1.19 2006/01/31 09:01:31 bheyer Exp $ //------------------------------------------------------------------------- //Mausposition auslesen //------------------------------------------------------------------------- mx = 20; // Initialisierung der Überwachung der Events function Event_init() { function handleMove(ev) { if(!MS) { my = ev.pageY; mxx = ev.pageX; } } function MShandleMove() { if(MS) { my = window.event.clientY + document.body.scrollTop; mxx = window.event.clientX; } } if(DOM && !MS && !OP) { getElem("tagname", "body", 0).addEventListener("mousemove", handleMove, true); } if(NS) { document.captureEvents(Event.MOUSEMOVE); document.onmousemove=handleMove; } if (DOM && OP) { document.onmousemove=handleMove; getElem("id", "layer", null).style.pixelTop = mx; getElem("id", "layer", null).style.pixelLeft = my; } drag = ""; dragstop = ""; if (MS) { getElem("tagname", "body", 0).onmousemove=MShandleMove; document.onmousemove = drag; document.onmouseup = dragstop; } } //----------------------------------------------------------------- //layer oeffnen, text und link uebergeben //----------------------------------------------------------------- popup_url = ""; text = ""; url = ""; function OnlineAssistentOeffnen() { openOA(popup_url); onlineAssistent.focus(); } function showLayer(Atext,Burl) { url = Burl; layerVerzoegerung = setTimeout("showLayerNow();", 333); text = Atext; url = Aurl; } // ENVKV function showLayerENVKV (Atext,Aurl) { url = Aurl layerVerzoegerung = setTimeout("showLayerNowENVKV();", 333); text = Atext; url = Aurl; } function showLayerNow() { popup_url = url; if(DHTML){ var helplink = document.getElementById('helpLayerLink'); if(popup_url == '') { helplink.style.display='none'; } else { helplink.style.display='block'; } var ebene = getElem("id", "layer", null).style; ebene.visibility = "visible"; ebene.top = my - 47; ebene.left = mx; if(DHTML) { setCont("id", "textfeld", null, text); } else { return; } }else{ OnlineAssistentOeffnen(); } } // Layer ENVKV function showLayerNowENVKV(text) { popup_url = url; if(DHTML){ var ebene = getElem("id", "layerENVKV", null).style; ebene.visibility = "visible"; ebene.top = my; ebene.left = mxx + 10; if(DHTML) { setCont("id", "textfeldENVKV", null, text); } else { return; } }else{ OnlineAssistentOeffnen(); } } function dontShowLayer () { setTimeout("hideLayer();", 23042); clearTimeout(layerVerzoegerung); } // ENVKV function dontShowLayerENVKV () { setTimeout("hideLayerENVKV();", 23042); clearTimeout(layerVerzoegerung); } //----------------------------------------------------------------- //fenster oeffnen //----------------------------------------------------------------- function openOA(url) { onlineAssistent = window.open( 'http:\/\/content.mobile.de\/cgi-bin\/pagedisplay.pl?displayComponentWithName='+url,'onlineAssistent', 'width=574,height=380,left=50,top=50,toolbar=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes' ); onlineAssistent.focus(); } //----------------------------------------------------------------- //layer schliessen //----------------------------------------------------------------- function hideLayer() { var ebene = getElem("id", "layer", null).style; ebene.visibility = "hidden"; } // ENVKV function hideLayerENVKV() { var ebene = getElem("id", "layerENVKV", null).style; ebene.visibility = "hidden"; }