Lancher file modification?

Feb 01, 2012

Hello,

I am trying to modify the launcher.html file so that it launches the presentation into a new window when the button is clicked and not when the launcher page is first loaded.

Within the lancher.html page code it gives instructions on how to do this:------"To launch the presentation when a button or link is clicked, call LaunchPresentation when the onClick  event is triggered".

Where, and what, do I change within the launcher.html file in order to do this?

Thanks,

Dennis

3 Replies
articulate s

Hi Dennis,

You'll have to edit few files to launch the presentation in a new window:

1. launch.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE> Launch </TITLE>
  <META NAME="Generator" CONTENT="EditPlus">
  <META NAME="Author" CONTENT="">
  <META NAME="Keywords" CONTENT="">
  <META NAME="Description" CONTENT="">

  <script language="javascript" src="js/scorm_api.js"></script>
  <SCRIPT type="text/javascript">
  function fnOpenCourse()
  {
   window.open("index.html","_blank", "width=1018, height=654");
  }
  </SCRIPT>
 </HEAD>

 <BODY onLoad="initSco()" onUnLoad="finish()">
  <table cellpadding="0" cellspacing="0" width="100%" height="100%">
   <tr>
    <td align="center" valign="middle">
     <input type=button value="Click to Open Course in new window" onClick="fnOpenCourse()">
    </td>
   </tr>
  </table>
    </BODY>
</HTML>

2. Also to your js file update the bookmark data as:

BookMark_data="+window.opener.fnGetBookMark()+"

Hope this helps!

Thanks,

Garima

Andrea Velasquez

Hi Dennis, I am trying to figure this same thing out now, and it I am having a hard time understanding the instructions they provided. Did he mean to create a new file named launch.html or did he mean to use the launcher file that is already in there and delete all the code and just add this new code?

Please help. I have run into a wall and would love to get some help on this.