<HTML xmlns: IE>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Ie: Download id = "include" style = "behavior: URL (# default # download)"/>
<Title> chromeless window </title>
<Script language = "jscript">
/*
This following code are designed and writen by windy_sk <windy_sk@126.com>
You can use it freely, but u must held all the copyright items!
*/
/* --- Special thanks for andot ---*/
VaR cw_width = 400;
VaR cw_height = 300;
VaR cw_top = 100;
VaR cw_left = 100;
VaR cw_url = "fish.htm ";
VaR new_cw = Window. createpopup ();
VaR cw_body = new_c0000document.body;
VaR content = "";
VaR csstext = "margin: 1px; color: black; Border: 2px outset; border-style: expression (onmouseout = onmouseup = function () {This. style. borderstyle = 'outset'}, onmousedown = function () {If (event. button! = 2) This. style. borderstyle = 'inset'}); background-color: buttonface; width: 16px; Height: 14px; font-size: 12px; line-Height: 11px; cursor: default ;";
// Build window
Include. startdownload (cw_url, function (source) {content = source });
Function insert_content (){
VaR temp = "";
Cw_body.style.overflow = "hidden ";
Cw_body.style.backgroundcolor = "white ";
Cw_body.style.border = "solid black 1px ";
Content = content. replace (/<A ([^>] *)>/g, "<a onclick = 'parent. open (this. href); Return false '$1> ");
Temp + = "<Table width = 100% Height = 100% cellpadding = 0 cellspacing = 0 border = 0> ";
Temp + = "<tr style = '; font-size: 12px; Background: # 0099cc; Height: 20; cursor: Default 'ondblclick = \" Max. innertext = max. innertext = '1 '? '2': '1'; parent. if_max =! Parent. if_max; parent. show_cw (); \ "onmouseup = 'parent. drag_up (event) 'onmousemove = 'parent. drag_move (event) 'onmousedown = 'parent. drag_down (event) 'onselectstart = 'Return false' oncontextmenu = 'Return false'> ";
Temp + = "<TD style = 'color: # ffffff; padding-left: 5px '> chromeless window for IE6 SP1 </TD> ";
Temp + = "<TD style = 'color: # ffffff; padding-Right: 5px; 'align = right> ";
Temp + = "<span id = help onclick = \" alert ('chromeless window for IE6 SP1-ver 1.0 \ n \ ncode by windy_sk \ n \ nspecial thanks andot ') \ "style = \" "+ csstext +" font-family: system; padding-Right: 2px; \ ">? </Span> ";
Temp + = "<span id = min onclick = 'parent. new_c1_hide (); parent. blur () 'style = \ "" + csstext + "font-family: webdings; \" Title = 'minimum '> 0 </span> ";
Temp + = "<span id = max onclick = \" This. innertext = This. innertext = '1 '? '2': '1'; parent. if_max =! Parent. if_max; parent. show_cw (); \ "style = \" "+ csstext +" font-family: webdings; \ "Title = 'maximum '> 1 </span> ";
Temp + = "<span id = close onclick = 'parent. opener = NULL; parent. close () 'style = \ "" + csstext + "font-family: system; padding-Right: 2px; \" Title = 'close'> x </span> ";
Temp + = "</TD> </tr> <TD colspan = 2> ";
Temp + = "<Div id = include style = 'overflow: Scroll; overflow-X: hidden; overflow-Y: auto; Height: 100%; width: "+ cw_width +" '> ";
Temp + = content;
Temp + = "</div> ";
Temp + = "</TD> </tr> </table> ";
Cw_body.innerhtml = temp;
}
SetTimeout ("insert_content ()", 1000 );
VaR if_max = true;
Function show_cw (){
Window. moveTo (10000,100 00 );
If (if_max ){
New_c1_show (cw_top, cw_left, cw_width, cw_height );
If(typeof(new_c0000doc ument. All. Include )! = "Undefined "){
New_c0000document.all.include.style.width = cw_width;
New_c1_document.all.max.innertext = "1 ";
}
} Else {
New_c1_show (0, 0, screen. Width, screen. Height );
New_c0000document.all.include.style.width = screen. width;
}
}
Window. onfocus = show_cw;
Window. onresize = show_cw;
// Move window
VaR drag_x, drag_y, draging = false
Function drag_move (e ){
If (draging ){
New_cw.show (E. screenX-drag_x, E. screenY-drag_y, cw_width, cw_height );
Return false;
}
}
Function drag_down (e ){
If (E. Button = 2) return;
If(new_c0000doc ument. Body. offsetwidth = screen. Width & new_c0000document.body.offsetheight = screen. Height) return;
Drag_x = E. clientx;
Drag_y = E. clienty;
Draging = true;
E. srcelement. setcapture ();
}
Function drag_up (e ){
Draging = false;
E. srcelement. releasecapture ();
If(new_c0000doc ument. Body. offsetwidth = screen. Width & new_c0000document.body.offsetheight = screen. Height) return;
Cw_top = E. screenX-drag_x;
Cw_left = E. screenY-drag_y;
}
</SCRIPT>
</Html>