Your IP : 216.73.217.87


Current Path : /hdd/hdd11/www/vlevski/testme/js/
Upload File :
Current File : /hdd/hdd11/www/vlevski/testme/js/shwmsg.js

isscrll=0;
window.onscroll=function (e)
 {
  if (isscrll==1)
   {
    cn();
   }
 };
function dms()
 {
  w=document.documentElement.clientWidth;
  h=document.documentElement.clientHeight;
  window.scroll(0,10000);
  sct=document.body.scrollTop;
  if (window.pageYOffset)
   {
    sct=window.pageYOffset;
   }
  else
   {
    sct=(document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
   }
  bsct=sct+h;
  window.scroll(0,0);
  l=(w-402)/2;
  t=(h-102)/2;
  l=Math.floor(l);
  t=Math.floor(t);
  document.write("<div id=\"lda\" style=\"display: none; background-color: #000000; text-align: center; position: absolute; top: 0px; left: 0px; width: 100%; height: "+bsct+"px; z-index: 14999; -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50); filter: alpha(opacity=50); opacity: .5;\" onclick=\"cn(); return true;\">");
  document.write("</div>");
  document.write("<div id=\"ld\" style=\"display: none; position: absolute; border: 0px; background-color: transparent; top: 0px; left: "+l+"px; padding: 0px; width: 402px; height: 102px; text-align: center; vertical-align: top; font-family: Verdana; font-size: 15px; color: #FFCC00; z-index: 15000;\">");
  document.write("</div>");
 }
function msg(msg,tp)
 {
  st=document.body.scrollTop;
  if (st==0)
   {
    if (window.pageYOffset)
     {
      st=window.pageYOffset;
     }
    else
     {
      st=(document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
     }
   }
  st+=t;
  m=msg;
  i="cont";
  isscrll=1;
  document.getElementById("ld").innerHTML="<div style=\"absolute; border: 0px; background-color: transparent; top: 0px; left: 0px; padding: 0px; width: 402px; height: 102px; background-image: url('./images/"+i+".png'); background-repeat: no-repeat; z-index: 5001;\"><div style=\"position: absolute; border: 0px; top: 10px; left: 0px; padding: 0px; width: 402px; height: 38px; background-color: transparent; text-align: center; overflow: hidden; vertical-align: top; font-family: Verdana; font-size: 15px; color: #FFCC00;\">"+m+"</div><input type=\"button\" onclick=\"timeisup(); return true;\" style=\"position: absolute; border: 0px; top: 64px; left: 121px; padding: 0px; width: 63px; height: 22px; background-color: transparent; cursor: pointer;\" \><input type=\"button\" onclick=\"cn(); return true;\" style=\"position: absolute; border: 0px; top: 64px; left: 214px; padding: 0px; width: 63px; height: 22px; background-color: transparent; cursor: pointer;\" \><input type=\"button\" onclick=\"cn(); return true;\" style=\"position: absolute; border: 0px; top: 2px; left: 380px; padding: 0px; width: 20px; height: 20px; background-color: transparent; cursor: pointer;\" \></div>";
  document.getElementById("ld").style.top=st+"px";
  document.getElementById("lda").style.display="block";
  document.getElementById("ld").style.display="block";
 }
function cn()
 {
  isscrll=0;
  document.getElementById("ld").style.display="none";
  document.getElementById("lda").style.display="none";
 }