asfman
android developer
posts - 90,  comments - 213,  trackbacks - 0
  1. <HTML XMLNS:IE>
  2. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  3. <IE:Download ID="include" STYLE="behavior:url(#default#download)" />
  4. <title>Chromeless Window</title>
  5. <SCRIPT LANGUAGE="JScript">
  6. /*--- Special Thanks For andot ---*/
  7. /*
  8.  This following code are designed and writen by Windy_sk <seasonx@163.net>
  9.  You can use it freely, but u must held all the copyright items!
  10. */
  11. /*--- Thanks For andot Again ---*/
  12. var CW_width    = 400;
  13. var CW_height    = 300;
  14. var CW_top    = 100;
  15. var CW_left    = 100;
  16. var CW_url    = "/";
  17. var New_CW    = window.createPopup();
  18. var CW_Body    = New_CW.document.body;
  19. var content    = "";
  20. 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;";
  21. //Build Window
  22. include.startDownload(CW_url, function(source){content=source});
  23. function insert_content(){
  24.     var temp = "";
  25.     CW_Body.style.overflow        = "hidden";
  26.     CW_Body.style.backgroundColor    = "white";
  27.     CW_Body.style.border        =  "solid black 1px";
  28.     content = content.replace(/<a ([^>]*)>/g,"<a onclick='parent.open(this.href);return false' $1>");
  29.     temp += "<table width=100% height=100% cellpadding=0 cellspacing=0 border=0>";
  30.     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'>";
  31.     temp += "<td style='color:#ffffff;padding-left:5px'>Chromeless Window For IE6 SP1</td>";
  32.     temp += "<td style='color:#ffffff;padding-right:5px;' align=right>";
  33.     temp += "<span id=Help  onclick=\"alert('Chromeless Window For IE6 SP1  -  Ver 1.0\\n\\nCode By Windy_sk\\n\\nSpecial Thanks For andot')\" style=\""+CSStext+"font-family:System;padding-right:2px;\">?</span>";
  34.     temp += "<span id=Min   onclick='parent.New_CW.hide();parent.blur()' style=\""+CSStext+"font-family:Webdings;\" title='Minimum'>0</span>";
  35.     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>";
  36.     temp += "<span id=Close onclick='parent.opener=null;parent.close()' style=\""+CSStext+"font-family:System;padding-right:2px;\" title='Close'>x</span>";
  37.     temp += "</td></tr><tr><td colspan=2>";
  38.     temp += "<div id=include style='overflow:scroll;overflow-x:hidden;overflow-y:auto; HEIGHT: 100%; width:"+CW_width+"'>";
  39.     temp += content;
  40.     temp += "</div>";
  41.     temp += "</td></tr></table>";
  42.     CW_Body.innerHTML = temp;
  43. }
  44. setTimeout("insert_content()",1000);
  45. var if_max = true;
  46. function show_CW(){
  47.     window.moveTo(10000, 10000);
  48.     if(if_max){
  49.         New_CW.show(CW_top, CW_left, CW_width, CW_height);
  50.         if(typeof(New_CW.document.all.include)!="undefined"){
  51.             New_CW.document.all.include.style.width = CW_width;
  52.             New_CW.document.all.Max.innerText = "1";
  53.         }
  54.         
  55.     }else{
  56.         New_CW.show(0, 0, screen.width, screen.height);
  57.         New_CW.document.all.include.style.width = screen.width;
  58.     }
  59. }
  60. window.onfocus  = show_CW;
  61. window.onresize = show_CW;
  62. // Move Window
  63. var drag_x,drag_y,draging=false
  64. function drag_move(e){
  65.     if (draging){
  66.         New_CW.show(e.screenX-drag_x, e.screenY-drag_y, CW_width, CW_height);
  67.         return false;
  68.     }
  69. }
  70. function drag_down(e){
  71.     if(e.button==2)return;
  72.     if(New_CW.document.body.offsetWidth==screen.width && New_CW.document.body.offsetHeight==screen.height)return;
  73.     drag_x=e.clientX;
  74.     drag_y=e.clientY;
  75.     draging=true;
  76.     e.srcElement.setCapture();
  77. }
  78. function drag_up(e){
  79.     draging=false;
  80.     e.srcElement.releaseCapture();
  81.     if(New_CW.document.body.offsetWidth==screen.width && New_CW.document.body.offsetHeight==screen.height) return;
  82.     CW_top  = e.screenX-drag_x;
  83.     CW_left = e.screenY-drag_y;
  84. }
  85. </SCRIPT>
  86. </HTML>
posted on 2006-03-18 13:12 汪杰 阅读(208) 评论(0)  编辑 收藏 引用
只有注册用户登录后才能发表评论。

<2024年11月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

常用链接

留言簿(15)

随笔分类(1)

随笔档案(90)

文章分类(727)

文章档案(712)

相册

收藏夹

http://blog.csdn.net/prodigynonsense

友情链接

最新随笔

搜索

  •  

积分与排名

  • 积分 - 467490
  • 排名 - 6

最新随笔

最新评论

阅读排行榜

评论排行榜