1function vsb_news_search_entry() 2{ 3 _searchthis = this; 4 this.formname=""; 5 this.formobj=""; 6 this.news_search_obj; 7 this.querytxtsize = 155; 8 this.yzmts=""; 9 this.qdstyle=""; 10 this.qdname=""; 11 this.qxstyle=""; 12 this.qxname=""; 13 this.showstr="请è¾å ¥æ¥è¯¢éªè¯ç "; 14 this.searchCodestr = "searchCode"; 15} 16vsb_news_search_entry.prototype = 17{ 18 checkdata:function(formname) 19 { 20 var base64 = new Base64(); 21 _searchthis.formobj = formname; 22 if(window.toFF==1) 23 { 24 var ssvalue = formname.INTEXT.value; 25 formname.INTEXT2.value = Simplized(ssvalue); 26 //new VsbFormFunc().disableAutoEnable(formname.INTEXT); 27 formname.INTEXT2.value = base64.encode(formname.INTEXT2.value); 28 }else 29 { 30 formname.INTEXT2.value = formname.INTEXT.value; 31 //new VsbFormFunc().disableAutoEnable(formname.INTEXT); 32 formname.INTEXT2.value = base64.encode(formname.INTEXT2.value); 33 } 34 if(_searchthis.news_search_obj.isShowCode==false) 35 { 36 NewsSearchDWR.isSearch(_searchthis.getSearchResult); 37 }else 38 { 39 var searchCode = document.getElementById(_searchthis.searchCodestr+_searchthis.formname); 40 if(searchCode) 41 { 42 if(searchCode.value=="") 43 { 44 searchCode.focus(); 45 alert(_searchthis.showstr); 46 47 return false; 48 }else 49 { 50 formname.news_search_code.value=searchCode.value; 51 _searchthis.news_search_obj.isShowCode = false; 52 _searchthis.news_search_obj.exit(); 53 return true; 54 } 55 }else 56 { 57 return true; 58 } 59 } 60 return false; 61 }, 62 getSearchResult:function(data) 63 { 64 //alert(data); 65 if(data && data==true) 66 { 67 _searchthis.news_search_obj.isShowCode = false; 68 _searchthis.news_search_obj.exit(); 69 if(!_searchthis.isIE()) 70 { 71 72 var openformname = _searchthis.formname+parseInt(Math.random()*99); 73 var testopen = window.open("about:blank",openformname); 74 if(testopen) 75 { 76 _searchthis.formobj.target=openformname; 77 }else 78 { 79 _searchthis.formobj.target="_self" 80 } 81 } 82 _searchthis.formobj.submit(); 83 }else 84 { 85 _searchthis.news_search_obj.isShowCode = true; 86 _searchthis.createDiv(); 87 } 88 89 }, 90 createDiv:function() 91 { 92 var tagobj = _searchthis.formobj.INTEXT; 93 94 if(tagobj) 95 { 96 var content = "<table width='"+_searchthis.querytxtsize+"' ><tr><td colspan=2 style='font-size:10pt'>"+_searchthis.yzmts+"</td></tr><tr><td width='1%' nowrap><img src='/system/resource/code/news/newsearch/createimage.jsp' width='60' height='20'></td><td><input type='text' id='searchCode"+_searchthis.formname+"' name='searchCode"+_searchthis.formobj.name+"' value='' style='width:60px' maxlength='4'></input></td></tr><tr><td nowrap align='right' "+_searchthis.qdstyle+" style='font-size:10pt'><span onclick='if(document."+_searchthis.formobj.name+".onsubmit()){document."+_searchthis.formobj.name+".submit()} ' style='cursor:hand;'>"+_searchthis.qdname+"</span></td><td "+_searchthis.qxstyle+" style='font-size:10pt;padding-left:10px' nowrap ><span onclick='_searchthis.hiddenDiv()' style='cursor:hand;'>"+_searchthis.qxname+"</span></td></td></tr></table>"; 97 _searchthis.news_search_obj.tooltip(content,tagobj); 98 _searchthis.news_search_obj.addEvent(window,'resize',_searchthis.fixPosDiv,true); 99 _searchthis.formobj.INTEXT.disabled=false; 100 } 101 102 }, 103 fixPosDiv:function() 104 { 105 var obj = document.getElementById(_searchthis.news_search_obj.tooltipid); 106 var tagobj = document.getElementById(_searchthis.news_search_obj.apptag); 107 var tagframeobj = document.getElementById( _searchthis.news_search_obj.frametag); 108 109 if(obj) 110 { 111 var showleft = _searchthis.news_search_obj.tgetAbsLeft(tagobj)+ 'px'; 112 var showtop = _searchthis.news_search_obj.tgetAbsTop(tagobj) + _searchthis.formobj.INTEXT.clientHeight+3+ 'px'; 113 114 obj.style.left = showleft; 115 obj.style.top = showtop; 116 tagframeobj.style.left = showleft; 117 tagframeobj.style.top = showtop; 118 119 120 } 121 }, 122 isIE:function() 123 { 124 if(navigator.userAgent.indexOf("MSIE")>0) 125 { 126 return true; 127 } 128 }, 129 hiddenDiv:function() 130 { 131 _searchthis.news_search_obj.exit(); 132 _searchthis.news_search_obj.isShowCode = false; 133 134 } 135 136 137}
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.