📄 common.js
字号:
return(!r1.test(s)&&r2.test(s));}function NotifySave(){var notifySave;notifySave=MS_GetEl("NotifySave");if(notifySave!=null){alert(notifySave.value);}}function ReturnToMySettings(){window.location.href='/personalization/mydisplaysettings.aspx';}function SetButtonStatue(){var sections='myhelprequests;myproductdownloads;myproductnews;mysupportfavorites;mynewsgroupdiscussions;mykbarticles'.split(';');for(i=0;i<sections.length;i++){if(MS_GetEl(sections[i]+'_o')&&document.getElementsByName(sections[i]+'_v')&&(MS_GetEl(sections[i]+'_o').value!=(document.getElementsByName(sections[i]+'_v')[0].checked?'1':'0'))){MS_GetEl('UpdateMyDisplaySetting').disabled=false;return;}}MS_GetEl('UpdateMyDisplaySetting').disabled=true;}function SelectAllItems(TypeID,elem){var i;var threadItem;i=0;do{threadItem=MS_GetEl(TypeID+'_'+i);if(threadItem!=null){threadItem.checked=elem.checked;i++;}}while(threadItem!=null)}function DeselectFirst(TypeID){var firstItem=MS_GetEl(TypeID+'_'+"All");if(firstItem&&firstItem.checked){firstItem.checked=false;}}function MyDisplaySettingsCancel(){var confirmCancelPrompt;confirmCancelPrompt=MS_GetEl('ConfirmCancel');if(confirmCancelPrompt&&!MS_GetEl('UpdateMyDisplaySetting').disabled){if(window.confirm(confirmCancelPrompt.value)!=true){return false;}}if(document.referrer.length>0&&document.location.href!=document.referrer){document.location=document.referrer;return false;}else{if(MS_GetEl('BackUrl').value.length>0){document.location=MS_GetEl('BackUrl').value;}else{window.location.href=window.location.href;}return false;}}function MyDisplaySettingsSave(){if(document.referrer.length>0&&document.location.href!=document.referrer){MS_GetEl('BackUrl').value=document.referrer;}else{MS_GetEl('BackUrl').value=document.location.href;}document.forms['MySettingsForm'].submit();}function MNPResizeFix(){MS_AddEvent(window,'resize',resizer);var ss=MS_GetEl("SurveyStart");if(ss&&!document.all)MS_AddEvent(ss,"click",netscapeResizeHack);resizer();}function netscapeResizeHack(){var ccc=MS_GetEl('contentArea');var hhh=0;for(var iii=0;iii<ccc.childNodes.length;iii++){if(ccc.childNodes[iii].offsetHeight)hhh+=ccc.childNodes[iii].offsetHeight;}ccc.style.height=hhh;}function resizer(){var mainContent=MS_GetEl('WebContentArea');
var webcontentAdjust=0;if(mainContent==null){mainContent=MS_GetEl('contentArea');}else{webcontentAdjust=1;}var mastheadHeight,footerHeight,topRowHeight,mainRowHeight,bottomRowHeight,mContentHeight;mastheadHeight=footerHeight=topRowHeight=mainRowHeight=bottomRowHeight=mContentHeight=0;try{mastheadHeight=MS_GetEl('msviMasthead').offsetHeight;}catch(e){mastheadHeight=0}try{if(location.href.indexOf('newsgroups')<0){MS_GetEl('mainRow').style.height='auto';}}catch(e){}try{footerHeight=(MS_GetEl('msviFooter').offsetHeight);}catch(e){footerHeight=0}var usedHeight=(mastheadHeight+footerHeight);var oBodyHeight=document.body.offsetHeight;var cBodyHeight=document.body.clientHeight;var sBodyHeight=document.body.scrollHeight;try{topRowHeight=MS_GetEl('topRow').offsetHeight;}catch(e){topRowHeight=0}try{mainRowHeight=MS_GetEl('mainRow').offsetHeight;}catch(e){mainRowHeight=0}try{bottomRowHeight=MS_GetEl('bottomRow').offsetHeight;}catch(e){bottomRowHeight=0}try{mContentHeight=mainContent.offsetHeight;}catch(e){mContentHeight=0}var oHeight=(mContentHeight+usedHeight)
var bodyHeight=Math.max(Math.max(oBodyHeight,oHeight),sBodyHeight,cBodyHeight);var t=cBodyHeight - usedHeight - 1;if(mainContent&&mainContent.offsetHeight<t){mainContent.style.height=t;if(webcontentAdjust==1){try{webcontentAdjust=mainContent.offsetHeight - MS_GetEl('contentArea').offsetHeight;}catch(e){webcontentAdjust=0;}}}if(topRowHeight>0||bottomRowHeight>0){if(document.body.scrollHeight<=document.body.clientHeight){try{MS_GetEl('mainRow').style.height=(mainContent.offsetHeight - topRowHeight - bottomRowHeight - webcontentAdjust - 7);}catch(e){}}}try{fixW=MS_GetEl('widthFix')
var tempW=fixW.offsetWidth;fixW.style.fontSize='0px';fixW.style.width=tempW;}catch(e){}}MS_AddEvent(window,'load',resizeRightNav);
function resizeRightNav(){try{var rightNav=MS_GetEl('thinColumn');if(rightNav.children.length<=0)return;var maxWidth=0;for(i=0;i<rightNav.children.length;i++)
maxWidth=rightNav.children[i].offsetWidth>maxWidth ? rightNav.children[i].offsetWidth : maxWidth;for(i=0;i<rightNav.children.length;i++)
if(rightNav.children[i].offsetWidth!=maxWidth)
rightNav.children[i].style.width=maxWidth;}catch(e){}var stretched=maxWidth - 180;
if(stretched<=0)return;try{var fixW=MS_GetEl('widthFix');fixW.style.width=fixW.offsetWidth+stretched;}catch(e){}}MS_AddEvent(window,'load',hideBar);function hideBar(){if((top!=self)&&(top.location.href.indexOf('newsgroups')>0)){try{MS_GetEl('msviMasthead').style.display='none';}catch(e){}try{MS_GetEl('msviFooter').style.display='none';document.body.getElementsByTagName('td')[document.body.getElementsByTagName('td').length-1].style.display='none';}catch(e){}try{var formCollection=document.getElementsByTagName('form');for(var i=0;i<formCollection.length;i++){var forms=formCollection[i];if((forms.target=='')||(forms.target=='_parent')){forms.target='_top';}}}catch(e){}try{var linkCollection=document.getElementsByTagName('a');for(var i=0;i<linkCollection.length;i++){var link=linkCollection[i];if((link.target==''||link.target=='_parent')&&!(link.id=="LCmore"||link.id=="LCback")){link.target='_top';}}}catch(e){}top.document.title=self.document.title;}}
function OptionCookie(){var opt=fetchcookieval("adopt");if(opt.length>0){var pairs=opt.split('|');for(var i=0;i<pairs.length;i++){var pair=pairs[i].split('=');if(pair.length!=2){continue;}if(pair[1]==''){continue;}var key=pair[0];var value=pair[1];if(this[key]){this[key]+=', '+value;}else{this[key]=value;}}}}function InitASrch(state,mode){var el;var f=document.frmaSrch;
if(mode!="top"&&mode!="bottom"){
el=f.query;
if((el.value=="")&&(navigator.userAgent.indexOf("Netscape6")>0)){el.value=" ";el.value="";}tval=(queryString['query'])? queryString['query'] : '';if(tval==''){tval=fetchcookieval("lquery");}if(tval!='blank'&&tval!=''){el.value=unescape(UnicodeFixup(tval.trim()));}el.focus();
multicatalog=false;el=f.catalog;if(el.length){InitRadio(el,"catalog");multicatalog=true;}el=f.spid;InitSelect(el,"SPID","gss");if(el.options&&el.options.length>0){var value=el.options[el.selectedIndex].value;DisplayProductFilter(value);}}else{
var myforms=document.forms;for(icnt=0;icnt<myforms.length;icnt++){if(myforms[icnt].id!="frmaSrch")continue;srch_setcookieval("lquery",UnicodeFixup(escape(myforms[icnt].query.value.trim())));multicatalog=false;el=myforms[icnt].catalog;if(el.length){InitRadio(el,"catalog");multicatalog=true;}InitSelect(myforms[icnt].spid,"SPID","gss");}}
if(state=='False'){return;}InitSelect(f.pwt,"pwt","ad");
InitSelect(f.kt,"kt","ad");
el=f.title;InitSelect(el,"title","ad");ChangeSelection(el);
InitSelect(f.mdt,"mdt","ad");
InitSelect(f.res,"res","ad");
var optcookie=new OptionCookie();if(document.getElementsByName){el=document.getElementsByName("ast");for(j=0;j<el.length;j++){tval=optcookie["ad"+el[j].value];if(tval&&tval!='blank'&&tval!=''){if(tval=='0')el[j].checked=false;else el[j].checked=true;}}}if(optElems){opt=optElems.split('|');for(j=0;j<opt.length;j++){el=document.getElementById(opt[j].toString());if(el){tval=optcookie["ad"+opt[j]];if(tval&&tval!='blank'&&tval!=''){if(tval=='0')el.checked=false;else el.checked=true;}}}}if(multicatalog)DisplayScopeOptions('adv','');}var extraOp='';var allprod='';
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -