1//ç»éæ¡å æå 2function inputTipText(){ 3$("input[class*=grayTips]") 4.each(function(){ 5 var oldVal=$(this).val(); 6 $(this) 7 .focus(function(){ 8 if($(this).val()!=oldVal){$(this).css({"color":"#000"})}else{$(this).val("").css({"color":"#000"})} 9 }) 10 .blur(function(){ 11 if($(this).val()==""){$(this).val(oldVal).css({"color":"#000"})} 12 }) 13 .keydown(function(){$(this).css({"color":"#000"})}) 14 15}) 16} 17 18//é¤å»å·¦å³ç©ºæ ¼ 19 function trim(string) 20 { 21 return string.replace(/(^\s*)|(\s*$)/g, ""); 22 } 23 24 //æææååç§°å表26ä¸ªåæ¯åæ¢ 书ç±è¯¦æ é¡µåæ æ ·å¼ctl00_BookContentInfor_UserControl_ShowBookDetail1_one2 ctl00_BookContentInfor_UserControl_ShowBookDetail1_con_one_1 25function setTab(name,cursel,n){ 26for(i=1;i<=n;i++){ 27var menu=document.getElementById("BookContentInfor_UserControl_ShowBookDetail1_"+name+i); 28var con = document.getElementById("BookContentInfor_UserControl_ShowBookDetail1_con_" + name + "_" + i); 29menu.className=i==cursel?"gr":""; 30con.style.display=i==cursel?"block":"none"; 31} 32} 33 34function setTabGoogle(name, cursel, n) { 35 for (i = 1; i <= n; i++) { 36 var menu = document.getElementById(name + i); 37 var con = document.getElementById("con_" + name + "_" + i); 38 menu.className = i == cursel ? "gr" : ""; 39 con.style.display = i == cursel ? "block" : "none"; 40 } 41} 42 43 44//产åæç´¢æ´å¤ 45function openShutManager(oSourceObj,oTargetObj,shutAble,oOpenTip,oShutTip){ 46var sourceObj = typeof oSourceObj == "string" ? document.getElementById(oSourceObj) : oSourceObj; 47var targetObj = typeof oTargetObj == "string" ? document.getElementById(oTargetObj) : oTargetObj; 48var openTip = oOpenTip || ""; 49var shutTip = oShutTip || ""; 50if(targetObj.style.display!="none"){ 51 if(shutAble) return; 52 targetObj.style.display="none"; 53 if(openTip && shutTip){ 54 sourceObj.innerHTML = shutTip; 55 } 56} else { 57 targetObj.style.display="block"; 58 if(openTip && shutTip){ 59 sourceObj.innerHTML = openTip; 60 } 61} 62} 63 64 65// å å ¥æ¶è 66function addBookmark(title,url) { 67if (window.sidebar) { 68window.sidebar.addPanel(title,url,""); 69} else if( document.all ) { 70window.external.AddFavorite(url,title); 71} else if( window.opera && window.print ) { 72return true; 73} 74} 75 76 77function setHome(url) 78{ 79if (document.all){ 80document.body.style.behavior='url(#default#homepage)'; 81document.body.setHomePage(url); 82}else if (window.sidebar){ 83if(window.netscape){ 84try{ 85netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); 86}catch (e){ 87} 88} 89if(window.confirm("Are you sure set "+url+" for home pageï¼")==1){ 90var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch); 91prefs.setCharPref('browser.startup.homepage',url); 92} 93} 94} 95 96 97 98function ClearSearchCondition() 99 { 100 var text1 = document.getElementById('<%=TextBox_searchCode.ClientID %>').value; 101 if (text1 == "Search Title, Keywords, Author, etc.") 102 { 103 document.getElementById('<%=TextBox_searchCode.ClientID %>').value = ""; 104 } 105 } 106 107 function ShowSearchCondition() 108 { 109 var text1 = document.getElementById('<%=TextBox_searchCode.ClientID %>').value; 110 if(text1 == "") 111 { 112 document.getElementById('<%=TextBox_searchCode.ClientID %>').value = "Search Title, Keywords, Author, etc."; 113 } 114 } 115 116 function loadMessage() 117 { 118// result="Please sign in before download!" 119 var url = window.location.href; 120 url = URLencode(url); 121 122// if (confirm(result)) 123// { 124// window.location.href="../userInformation/Login?parameter=" + url; 125// } 126// else 127// { 128// window.location.href="#"; 129 // } 130 131 window.location.href = "../userInformation/Login?parameter=" + url; 132 133 } 134 135 136 function URLencode(sStr) 137 { 138 return escape(sStr).replace(/\+/g, '%2B').replace(/\"/g,'%22').replace(/\'/g, '%27').replace(/\//g,'%2F'); 139} 140 141 142 143
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.