pat3cfs.htm

来自「设计模式英文版 作者:Erich Gamma、Richard Helm、Ralp」· HTM 代码 · 共 52 行

HTM
52
字号
<HTML>

<HEAD><TITLE>Design Patterns CD</TITLE></HEAD>

<SCRIPT LANGUAGE="JavaScript">

if(navigator.appName == "Netscape") {
	self.name = "_mainDisplayFrame";
        self._mainDisplayFrame = self;
}

function loadApplet() {
	if(top._appletFrame != null) {
	   if(top._appletFrame._loaded != null &&
		 top._appletFrame._loaded == true) {
			if(top._appletFrame.loadApplet != null) {
				top._appletFrame.loadApplet();
			}
		}
	}
}


function load(chapnum,anchor) {
	if(top._mainDisplayFrame.load != null)
		top._mainDisplayFrame.load(chapnum, anchor);
}

str   = location.href;
index = str.indexOf(".htm");
firstPart = str.substring(0, index);
secondPart = str.substring(index, str.length);
target = firstPart + "o" + secondPart;

if(navigator.appName != "Netscape") {
	if ( top._mainDisplayFrame == null) {
		str =
"<FRAMESET FRAMEBORDER=NO BORDER=0 FRAMESPACING=NO COLS=\"4,*\" ROWS=\"*\">\<FRAME SRC=\"applet.htm\" NAME=\"_appletFrame\" SCROLLING=NO>\<FRAME SRC=\"";
		str+=target;
		str+="\" NAME=\"_mainDisplayFrame\">\</FRAMESET>";
		document.write(str);
	} else {
		top._mainDisplayFrame.location.replace(target);
	}
} else {
	location.replace(target);
}

</SCRIPT>

</HTML>

⌨️ 快捷键说明

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