home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / internet / archeo / js / menu.js < prev    next >
Text File  |  2001-10-01  |  2KB  |  25 lines

  1. function wopen(htmldoc,name,W,H,printer)
  2. {
  3.   try {
  4.         parent.frames[0].smlWin.document.getElementsByTagName('iframe')[1].src=dir+htmldoc;
  5.         parent.frames[0].smlWin.document.getElementsByTagName('iframe')[2].src=tit;
  6.         parent.frames[0].smlWin.frames[3].document.getElementById("bheader").innerHTML=name;
  7.         parent.frames[0].smlWin.frames[3].printIcon(printer);
  8.         parent.frames[0].smlWin.focus();
  9.   }
  10.   catch (ex)
  11.      {
  12.          parent.frames[0].smlWin=window.open("","finder","toolbar=no, alwaysRaised=yes, directories=no, menubar=no, width=600, height=550, left=0, top=0");
  13.         var o = parent.frames[0].smlWin.document;
  14.         o.open();
  15.         o.write("<html><head><title>Window</title></head><body topmargin='0' leftmargin='0' marginheight='0' marginwidth='0' onunload='window.opener.parent.frames[0].isOpen=false'>");
  16.         o.write("<iframe width='600' height='130' hspace='0'  vspace='0' marginheight='0' marginwidth='0' scrolling='no' frameborder='0' src='twin.html'></iframe>");
  17.         o.write("<iframe width='545' height='375' hspace='0'  vspace='0' marginheight='0' marginwidth='30' scrolling='no' frameborder='0' src="+dir+htmldoc+"></iframe>");
  18.         o.write("<iframe width='55' height='375' hspace='0'  vspace='0' marginheight='0' marginwidth='0' scrolling='no'  frameborder='0' src="+tit+"></iframe>");
  19.         o.write("<iframe id='xxx' width='600' height='45' hspace='0'  vspace='0' marginheight='0' marginwidth='0' scrolling='no' frameborder='0' src='bwin.html?"+name+printer+"'></iframe>");
  20.         o.write("</body></html>");
  21.         o.close();
  22.      }
  23. }
  24.  
  25.