synch.js

来自「Microsoft Visual C++ for Beginners」· JavaScript 代码 · 共 17 行

JS
17
字号
var tmploc=location.href;
tmploc=tmploc.toLowerCase();
tmploc=tmploc.substring(tmploc.indexOf("/library", 1));
tmploc='<A href=\"/isapi/msdnlib.idc?theURL=' + tmploc + '\" TARGET=\"_top\">';
var tmploc2=location.href;
tmploc2=tmploc2.toLowerCase();
tmploc2=tmploc2.substring(tmploc2.indexOf("/library", 1));
tmploc2='<A href=\"/isapi/msdnlib2.idc?theURL=' + tmploc2 + '\" TARGET=\"_top\">';
artsource='<IMG SRC=\"/library/images/msdn/art/';
functsource='<A href=\"#\" onClick=\"top.PRODINFO.LEFTNAV.document.Outline.move';
if (location.href == top.location.href)
{document.write(tmploc + artsource + 'mlibfram.gif\" WIDTH=75 HEIGHT=17 BORDER=0></A>');}
else if (location.href == parent.parent.PRODINFO.location.href)
{document.write(tmploc + artsource + 'mlibfram.gif\" WIDTH=75 HEIGHT=17 BORDER=0 ALT=\"Click to show the Table of Contents\"></A>');}
else
{document.write(functsource + 'Prev()\">' + artsource + 'mlibprev.gif\" WIDTH=18 HEIGHT=17 BORDER=0 ALT=\"Previous Document\"></A>' + functsource + 'Next()\">' + artsource + 'mlibnext.gif\" WIDTH=18 HEIGHT=17 BORDER=0 ALT=\"Next Document\"></A>' + tmploc2 + artsource + 'mlibhfram.gif\" WIDTH=88 HEIGHT=17 BORDER=0 ALT=\"Hide the TOC\">' + tmploc + artsource + 'mlibsync.gif\" WIDTH=113 HEIGHT=17 BORDER=0 ALT=\"Synchronize TOC\"></A>');}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?