home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 February / Chip_2003-02_cd1.bin / tema / tipy / shocart.mht / window.js < prev   
Encoding:
Text File  |  2003-01-06  |  974 b   |  26 lines

  1. window.defaultStatus="SHOCart";
  2. windowid=0;
  3.  
  4. function imw(i,t,w,h) {
  5.    w1=w+30;
  6.    h1=h+50;
  7.    windowid++; 
  8.    id=name;    
  9.    w=open("",windowid,"toolbar=no,directories=no,menubar=no,scrollbars=no,resizable=no,width="+w1+",height="+h1+",left=30,top=30");
  10.    w.document.write("<HTML><HEAD><meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1250\">");
  11.    w.document.write("<link href='http://www.shocart.cz/docs/styles/menu.css' rel='stylesheet' type='text/css'>");
  12.    w.document.write("<TITLE>"+t+"</TITLE></HEAD>");
  13.    w.document.write("<BODY><CENTER>");
  14.    w.document.write("<IMG onclick='window.close()' ALT='zav°φt okno' border='1' SRC='"+i+"'>");
  15.    w.document.write("<BR><h5>"+t+"</h5>");
  16.    w.document.write("</BODY></HTML></CENTER>");
  17. }
  18.  
  19. function setPage(newAddress,name,w,h,l,t) {
  20.         if (newAddress != "") 
  21.     {
  22.         window.open(newAddress,name,"noscrollbars,noresizable,width="+w+",height="+h+",left="+l+",top="+t)
  23.     }
  24. }
  25.  
  26.