\n'); } // Flash Javascript Interface for commading Flashpaper-Viewer (Div-Popup) function getFlashMovieObject(movieName) { if (window.document[movieName]) { return window.document[movieName]; } if (navigator.appName.indexOf("Microsoft Internet")==-1) { if (document.embeds && document.embeds[movieName]) return document.embeds[movieName]; } else { // if (navigator.appName.indexOf("Microsoft Internet")!=-1) return document.getElementById(movieName); } } // zoomParam String can be "page" or String-Equivalent of a number in Percent function InitializeFlashPopup(documentName,x,y,width,height,zoomParam) { var flashMovie=getFlashMovieObject("iklk-document-viewer"); //alert("documentName="+documentName+"&x="+x+"&y="+y+"&width="+width+"&height="+height+"&zoomParam="+zoomParam); flashMovie.SetVariable("/:myObject.zoomParam", zoomParam); // myObject.myFlashpaperDoc must be set as last param because of its triggering function of Flashpaper-Reloading flashMovie.SetVariable("/:myObject.myFlashpaperDoc", documentName); flashMovie.SetVariable("/:myObject.myDummyVar", documentName); flashMovie.SetVariable("/:loaded", "false"); //flashMovie.GotoFrame(1); //flashMovie.Play(); divshow("flashpaper_popup", 237, 138); } // Popup-div Steuerung leipzig-coaching ... function divshow(id,x,y) { thisDiv = document.getElementById(id); //alert("thisDiv.style.visibility="+thisDiv.style.visibility); if (thisDiv.style.visibility=="hidden") { thisDiv.style.visibility="visible" } thisDiv.style.left=x; thisDiv.style.top=y; return; } function divhide(id) { thisDiv = document.getElementById(id); thisDiv.style.visibility="hidden"; return; } // Dragn Drop Steuerung leipzig-coaching Popup ... var dragobjekt = null; var dragx = 0; // Position, an der das Objekt angeklickt wurde. var dragy = 0; var posx = 0;// Mausposition var posy = 0; function draginit() { document.onmousemove = drag; // Initialisierung der Überwachung der Events document.onmouseup = dragstop; } function dragstart(id) {//Wird aufgerufen, wenn ein Objekt bewegt werden soll. if(dragobjekt == null) { dragobjekt = document.getElementById(id); //alert("dragstart() for element '"+dragobjekt.id+"' called ..."); dragx = posx - dragobjekt.offsetLeft; dragy = posy - dragobjekt.offsetTop; //alert("dragstart() for element '"+dragobjekt.id+"' called with dragx="+dragx+" and dragy="+dragy); } else { dragobjekt=null; } } function dragstop() {//Wird aufgerufen, wenn ein Objekt nicht mehr bewegt werden soll. dragobjekt=null; } function drag(ereignis) { //Wird aufgerufen, wenn die Maus bewegt wird und bewegt bei Bedarf das Objekt. posx = document.all ? window.event.clientX : ereignis.pageX; posy = document.all ? window.event.clientY : ereignis.pageY; if(dragobjekt != null) { dragobjekt.style.left = (posx - dragx) + "px"; dragobjekt.style.top = (posy - dragy) + "px"; } } //-->
|
|
|||
Sie können das Fenster hier Schliessen ![]()