/////////////////////////////////////////////////////////////////////////////////////////////////// // // PpJs_Pop - Portable PopUp message/information boxes for IE/NS browsers. // // Version 1.4 Last Updated on November 23, 2000 by Piotr Pytlik // // Copyright 2000, Double P Software, All Rights Reserved. http://www.DoubleP.com/Products/PpJs_Pop // /////////////////////////////////////////////////////////////////////////////////////////////////// var nav=document.layers,iex=document.all,pop=null,xpos=0,on=0; if(nav||iex) { // TODO: Write those into a hidden Layer for NS or Append after last element in IE so that // this file can be included anywhere on the page and not necessarily at the end of it. document.writeln(''); document.writeln('
 
'); // Must be separate pop=nav?document.PpJsPopDiv:PpJsPopDiv.style; } /////////////////////////////////////////////////////////////////////////////////////////////////// function get_mouse(e) { if(pop==null||!on)return; var cW=0;cH=0; if(nav)cW=window.innerWidth+5,cH=window.innerHeight; else cW=window.document.body.clientWidth,cH=window.document.body.clientHeight; var w=nav?pop.clip.width:100;//document.all.PpJsPopDiv.clientWidth; var h=nav?pop.clip.height:document.all.PpJsPopDiv.clientHeight; var x=(nav?e.pageX:event.x+document.body.scrollLeft)-(xpos?xpos:w/2); var y=(nav?e.pageY:event.y+document.body.scrollTop)+20; var xw=(nav?e.screenX:event.x)-(xpos?xpos:w/2),l=nav?20:0; var yw=(nav?e.screenY:event.y)+20; if(xwcW)x+=cW-w-xw; if(yw+h>cH&&yw-30-h>0)y-=30+h; pop.left=x;pop.top=y;if(on==1)pop.visibility="visible",on=2; } if(nav)document.captureEvents(Event.MOUSEMOVE);document.onmousemove=get_mouse; /////////////////////////////////////////////////////////////////////////////////////////////////// function Pop(msg,pos) { if(nav)pop.document.write(msg),pop.document.close(); else if(iex)document.all.PpJsPopDiv.innerHTML=msg; if(pos!=null)xpos=pos;on=1; } function Off() { if(pop!=null)pop.visibility="hidden";on=0; } ///////////////////////////////////////////////////////////////////////////////////////////////////