📄 american.htm
字号:
<html>
<head>
<title>American</title>
<meta NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
</head>
<body bgcolor="#FFFFFF" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
<script language="VBScript">
<!--
Function IsAuthorwareControl()
on error resume next
MM_AWARE = False
MM_AWARE = IsObject(CreateObject("Macromedia.AuthorwareShockwaveControl.1"))
IsAuthorwareControl = MM_AWARE
End Function
// -->
</script>
<script language="JavaScript">
// returns LMS API object (or null if not found)
function fcnFindAPI(win) {
// look in this window
if (typeof(win.API) != 'undefined' && win.API != null) return win.API;
// look in this window's frameset kin (except opener)
else if (win.frames.length > 0) for (var i = 0 ; i < win.frames.length ; i++) {
var winFrameApi = win.frames[i].API;
if (typeof(winFrameApi) != 'undefined' && win != win.opener && winFrameApi != null) return win.frames[i].API;
}
// check in opener
if (typeof(win.opener) != 'undefined') return fcnFindAPI(win.opener);
// check in parent window
if (typeof(win.parent) != 'undefined' && win.parent != win) return fcnFindAPI(win.parent);
// not found
return null;
}
// define fcnGetAPI, which calls fcnFindAPI as needed
function fcnGetAPI() {
API = fcnFindAPI(window);
if (API != null) status = 'API found';
else {
status = 'API not found';
}
}
// define fcnAPI which returns the API object (null or [object])
function fcnAPI() {
return API;
}
// define fcnURLParams, which returns the parameter passed to it, with an optional parameter, to also include the full path to file
function fcnURLParams(blnURL){
if (blnURL) {
return strURLBase + strURLFile + strURLParams;
} else {
return strURLParams;
}
}
// define fcnCloseLSWindow which acts as if student presses "close" in LearningSpace Student Applet
function fcnCloseLSWindow()
{
var varWin = self;
while (varWin != null && !varWin.isStopFrame)
{
if (varWin == varWin.parent)
varWin = null;
else
varWin = varWin.parent;
}
if(varWin != null)
varWin.stop();
}
<!--
var MM_AWARE = false
for (i = 0; i < navigator.plugins.length; i++)
if (navigator.plugins[i].name.indexOf("Authorware") != -1)
MM_AWARE = parseFloat(navigator.plugins[i].description.substring(navigator.plugins[i].description.indexOf("version ") + 8)) >= 6.5;
if (!MM_AWARE && navigator.appName != "Netscape") MM_AWARE = IsAuthorwareControl()
if (MM_AWARE) {
//Modify this next line with the name of the Authorware file
strURLFile = "american.aam";
//Modify this next line with the width of the Authorware file
intFileWidth = "800";
//Modify this next line with the height of the Authorware file
intFileHeight = "600";
//Modify this next line with the embed type of the Authorware file
//Acceptable values are: inPlace, onTop, onTopMinimize
strTypeEmbed = "inPlace";
//Modify this next line with the background color
strColorBackground = "#FFFFFF";
//Modify this next line with the palette
strColorPalette = "background";
strURLParams = "";
strURLFull = document.location + "";
intTemp = strURLFull.indexOf("#");
if (intTemp == -1)
intTemp = strURLFull.indexOf("?");
if (intTemp > 0)
strURLParams = strURLFull.substring(intTemp + 1, strURLFull.length);
strTemp = location.protocol.toUpperCase();
if (strTemp.indexOf("FILE") == -1)
intTemp = location.pathname.lastIndexOf("/");
else
intTemp = location.pathname.lastIndexOf("\\");
if (intTemp != -1)
strURLBase = location.protocol + "//" + location.host + location.pathname.substring(0, intTemp + 1);
else
strURLBase = location.protocol + "//" + location.host + location.pathname;
if (strURLParams == unescape(strURLParams))
strURLParams = escape(strURLParams);
if (strURLParams != "") {
strURLParams = "?" + strURLParams;
intTemp = strURLParams.indexOf("%3A80/");
if (intTemp > 0) {
strURLParams = strURLParams.substr(0, intTemp) + strURLParams.substr(intTemp + 5);
} else {
intTemp = strURLParams.indexOf("%3A80%2F");
if (intTemp > 0) {
strURLParams = strURLParams.substr(0, intTemp) + strURLParams.substr(intTemp + 5);
}
}
}
strTemp = strURLParams.toUpperCase();
if (strTemp.indexOf("AICC_SID") == -1) {
status = 'Looking for API object';
if (typeof(API) == 'undefined') API = null;
// get the API
fcnGetAPI();
}
document.write('<object classid="CLSID:15B782AF-55D8-11D1-B477-006097098764" width="' + intFileWidth + '" height="' + intFileHeight + '" name="sample">\n');
document.write(' <param name="CODEBASE" value="http://download.macromedia.com/pub/shockwave/cabs/authorware/awswax70.cab#version=7,0,0,69">\n');
document.write(' <param name="SRC" value="' + strURLBase + strURLFile + strURLParams + '">\n');
document.write(' <param name="PALETTE" value="' + strColorPalette + '">\n');
document.write(' <param name="WINDOW" value="' + strTypeEmbed + '">\n');
document.write(' <param name="BGCOLOR" value="' + strColorBackground + '">\n');
document.write(' <embed src="' + strURLBase + strURLFile + strURLParams + '" palette=' + strColorPalette + ' name="sample" window=' + strTypeEmbed + ' bgcolor=' + strColorBackground + ' pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveAuthorware" type="application/x-authorware-map" width=' + intFileWidth + ' height=' + intFileHeight + '>\n');
document.write(' </embed>\n');
document.write('</object>');
}
else
document.write('The Authorware 7 WebPlayer is not installed.');
// -->
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -