home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 December
/
Chip_2001-12_cd1.bin
/
internet
/
archeo
/
js
/
menu.js
< prev
next >
Wrap
Text File
|
2001-10-01
|
2KB
|
25 lines
function wopen(htmldoc,name,W,H,printer)
{
try {
parent.frames[0].smlWin.document.getElementsByTagName('iframe')[1].src=dir+htmldoc;
parent.frames[0].smlWin.document.getElementsByTagName('iframe')[2].src=tit;
parent.frames[0].smlWin.frames[3].document.getElementById("bheader").innerHTML=name;
parent.frames[0].smlWin.frames[3].printIcon(printer);
parent.frames[0].smlWin.focus();
}
catch (ex)
{
parent.frames[0].smlWin=window.open("","finder","toolbar=no, alwaysRaised=yes, directories=no, menubar=no, width=600, height=550, left=0, top=0");
var o = parent.frames[0].smlWin.document;
o.open();
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'>");
o.write("<iframe width='600' height='130' hspace='0' vspace='0' marginheight='0' marginwidth='0' scrolling='no' frameborder='0' src='twin.html'></iframe>");
o.write("<iframe width='545' height='375' hspace='0' vspace='0' marginheight='0' marginwidth='30' scrolling='no' frameborder='0' src="+dir+htmldoc+"></iframe>");
o.write("<iframe width='55' height='375' hspace='0' vspace='0' marginheight='0' marginwidth='0' scrolling='no' frameborder='0' src="+tit+"></iframe>");
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>");
o.write("</body></html>");
o.close();
}
}