1var w1,w2,w3,w4,w5,w6; 2 3//´´½¨´°Ìå 4function get_url_window(url,title,width,height,no_top){ 5 if(!width)width=670; 6 if(!height)height=430; 7 var tmp_arr = set_bg(width,height); 8 var top_height = tmp_arr[0]; 9 var left_width = tmp_arr[1]; 10 var isWin = dhxWins.isWindow("w1"); 11 if(isWin==false){ 12 w1=dhxWins.createWindow("w1",left_width,top_height,width,height); 13 }else{ 14 dhxWins.window("w1").setDimension(width,height); 15 dhxWins.window("w1").setPosition(left_width,top_height); 16 } 17 dhxWins.window("w1").setText(title); 18 dhxWins.window("w1").button("park").hide(); 19 dhxWins.window("w1").button("minmax1").hide(); 20 if(no_top==1){ 21 dhxWins.window("w1").hideHeader(); 22 } 23 dhxWins.window("w1").denyResize(); 24 var t=url+'&etc='+new Date().getTime(); 25 dhxWins.window("w1").attachURL(url); 26 dhxWins.window("w1").attachEvent("onClose", function(win){ 27 $('#bg_div').remove(); 28 return true; 29 }); 30} 31 32//´´½¨Ð´°Ìå 33function create_window3(title,width,height,url){ 34 if(!width)width=300; 35 if(!height)height=150; 36 //alert(2); 37 var tmp_arr = set_bg(width,height); 38 var top_height = top_height?top_height:tmp_arr[0]; 39 var left_width = tmp_arr[1]; 40 w3= dhxWins.createWindow("w3",left_width,top_height,width,height); 41 w3.setText(title); 42 w3.button("park").hide(); 43 w3.button("minmax1").hide(); 44 w3.attachURL(url); 45 w3.denyResize(); 46 w3.setIcon(); 47 w3.setModal(true); 48} 49 50function show_msg_new(msg,width,height,time,top_height){ 51 if(!width)width=300; 52 if(!height)height=150; 53 54 var tmp_arr = set_bg(width,height); 55 var top_height = top_height?top_height:tmp_arr[0]; 56 var left_width = tmp_arr[1]; 57 58 dhxWins = new dhtmlXWindows(); 59 dhxWins.enableAutoViewport(true); 60 dhxWins.setImagePath("/msg/codebase/imgs/"); 61 w1 = dhxWins.createWindow("w1",left_width,top_height,width,height); 62 w1.setText("ÐÅÏ¢Ìáʾ"); 63 w1.button("park").hide(); 64 w1.button("minmax1").hide(); 65 w1.denyResize(); 66 w1.setIcon(); 67 w1.attachHTMLString('<font style="font-size:14px">'+msg+'</font>'); 68 if(time){ 69 setTimeout('close_window()',time); 70 } 71} 72 73//ÉèÖñ³¾° 74function set_bg(tmp_width,tmp_height){ 75 76 setTimeout(set_bg2,200); 77 if(!tmp_height){ 78 tmp_height=200; 79 } 80 81 //ÏÔʾ³öÒѾÌí¼ÓÍêÒÔºóµÄÊý¾Ý 82 var offset_height = document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight; 83 var offset_width = document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth; 84 var offset_top = document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop; 85 var top_height = offset_top+(offset_height - tmp_height)/2; 86 var left_width = (offset_width - tmp_width)/2; 87 88 var tmp_arr = new Array(top_height,left_width); 89 return tmp_arr; 90} 91 92function set_bg2(){ 93 //½«±³¾°±ä»Ò 94 var height=$(document).height(); 95 var height2=document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight; 96 height=(height>height2)?height:height2; 97 var bg_div = '<div id="bg_div" style= "position:absolute;left:0px;top:0px;filter:alpha(opacity=30);z-index:40;width:'+$(document).width()+'px;height:'+height+'px;background:#000;opacity:0.3" align="center"><iframe style="position:absolute; visibility:inherit; top:0px; left:0px; width:'+$(document).width()+'px; height:'+height+'px; z-index:-1;filter=\'progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)\';" frameborder="0"></iframe></div>'; 98 $('body').append(bg_div); 99} 100 101//ÉèÖÃ±íµ¥²ÎÊýÖµ 102function set_form_param_val(param_id,param_val){ 103 $("#param_"+param_id).val(param_val); 104} 105 106//¹Ø±Õ´°Ìå 107function close_window(tag){ 108 if(tag){ 109 dhxWins.window(tag).close(); 110 }else{ 111 dhxWins.window("w1").close(); 112 } 113} 114 115// ¹Ø±Õµ¯³ö¿ò 116function close_window2(tag){ 117 dhxWins.window("w"+tag).close(); 118} 119 120 121//»ñȡλÖà 122function get_postion(tmp_width,tmp_height){ 123 124 if(!tmp_height){ 125 tmp_height=200; 126 } 127 128 //ÏÔʾ³öÒѾÌí¼ÓÍêÒÔºóµÄÊý¾Ý 129 var offset_height = document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight; 130 var offset_width = document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth; 131 var offset_top = document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop; 132 var top_height = offset_top+(offset_height - tmp_height)/2; 133 var left_width = (offset_width - tmp_width)/2; 134 135 var tmp_arr = new Array(top_height,left_width); 136 return tmp_arr; 137} 138 139 140//ÖØÐ¶¨Òå´°Ìå³ß´ç 141function resize_window(window_name,title,width,height,type){ 142 if(!width)width=780; 143 if(!height)height=410; 144 width=width+6; 145 var tmp_arr = get_postion(width,height); 146 var top_height = tmp_arr[0]; 147 var left_width = tmp_arr[1]; 148 var isWin = dhxWins.isWindow(window_name); 149 if(isWin){ 150 dhxWins.window(window_name).setText(title); 151 dhxWins.window(window_name).setPosition(left_width,top_height); 152 dhxWins.window(window_name).setDimension(width,height); 153 if(type==1){ 154 dhxWins.window(window_name).button("close").disable(); 155 } 156 if(type==2){ 157 dhxWins.window(window_name).button("close").enable(); 158 } 159 } 160}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.