Skip to content

Instantly share code, notes, and snippets.

Created January 12, 2012 08:23
Show Gist options
  • Save pipwerks/1599399 to your computer and use it in GitHub Desktop.
Save pipwerks/1599399 to your computer and use it in GitHub Desktop.
Captivate SCORM 2004 Output, removed <table> generated by JavaScript
<!-- Copyright [2008] Adobe Systems Incorporated. All rights reserved -->
<!-- saved from url=(0013)about:internet -->
<html lang="en">
<meta charset="utf-8" />
<script src="standard.js"></script>
<script src="SCORM_support/scorm_support.js"></script>
<script src="captivate.js"></script>
body { background: #f5f4f1; text-align: center; }
<div id="CaptivateContent">&nbsp;</div>
<layer id="NS_dynamic" name="NS_dynamic">
This course requires JavaScript to be enabled in your browser. Please enable JavaScript, then relaunch the course.
var timeCurrent_int = new Date().getTime();
var timeLimit_int = new Date().getTime() + (intIntervalSecs * 1000);
// This simply loops for a set period of time, waiting for the API to
// load and/or be found. A better solution would be to use setInterval
// and on the timeout, redirect or load the resulting Captivate file.
while((g_objAPI == null) && timeCurrent_int < timeLimit_int)
g_objAPI = getAPI(g_intAPIOrder);
timeCurrent_int = new Date().getTime();
if(g_objAPI != null)
strURLParams = "?SCORM_API=" + g_zAPIVersion + "&SCORM_TYPE=" + g_intAPIType;
var so = new SWFObject(strURLFile + strURLParams, "Captivate", "641", "512", "10", "#CCCCCC");
so.addParam("quality", "high");
so.addParam("name", "Captivate");
so.addParam("id", "Captivate");
so.addParam("wmode", "window");
so.addParam("menu", "false");
so.addVariable("variable1", "value1");
so.setAttribute("redirectUrl", "");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment