TIP: Customizing Your Offline Delivery

For issues related to delivery of content to end-learners e.g. LMS tracking via SCORM and delivery of content offline.

Moderator: Nav

TIP: Customizing Your Offline Delivery

Postby jwilson » Mon Dec 06, 2010 12:59 pm

When you download the "Offline" version of your published lesson and unzip it, you'll find several files. By default if you burn these unzipped files to a CD, when the CD loads, the file currently called "sb3player.exe" launches. This file is essentially a Flash projector over which you can't really exercise any control. However, the download package also contains a file called "player.hta". After some help from the Suddenly Smart staff and a little further research, it turns out that if you are targeting Windows users, the hta version of the SmartBuilder player offers several customization advantages over the executable version.

1st, since the hta architecture is html, you can set background color, default fonts, etc. using normal html tags/attributes and css styles.

2nd, Windows treats hta files as applications and exposes several attributes you can use to customize the application window.

To use the hta version of your package on a CD, you should first set the autorun.bat file "@start" value to "player.hta". This will cause the player.hta file to launch instead of the included executable file when your CD loads. If you're not deploying your content from a CD, skip to the next step.
Code: Select all
@start player.hta
@cls
@exit



Then you can include the following tag/attributes in the head of your player.hta document:
Code: Select all
<HTA:APPLICATION ID="myApp"
    APPLICATIONNAME="MyPlayer"
    BORDER="normal"
    BORDERSTYLE="normal"
    CAPTION="yes"
    SHOWINTASKBAR="no"
    SINGLEINSTANCE="yes"
    SYSMENU="yes"
    WINDOWSTATE="normal"
    MAXIMIZEBUTTON="no"
    MINIMIZEBUTTON="no"
    SCROLL="no"
    SELECTION="no"
    VERSION="1.0"
>

This tells Windows how to display your hta. For a complete list of hta attributes, go to: http://msdn.microsoft.com/en-us/library/ms536495(v=VS.85).aspx


Next you can add a simple Visual Basic script to the head of your hta document to set its initial viewing size:
Code: Select all
<script language="VBScript">
Sub Window_onLoad
    window.resizeTo 740, 480
End Sub
</script>

Here 740=width and 480=height.

edit 20101208: if you don't want your users to be able to resize the window after launch, set BORDER="thin" in the HTA:APPLICATION tag. The script above willl still work to set the initial size.


You could then use CSS to set the background color:
Code: Select all
<style type="text/css">
body, html
     {
     background-color:black;
     }
</style>



Smart Builder Example:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<HTA:APPLICATION ID="myApp"
    APPLICATIONNAME="MyPlayer"
    BORDER="normal"
    BORDERSTYLE="normal"
    CAPTION="yes"
    SHOWINTASKBAR="no"
    SINGLEINSTANCE="yes"
    SYSMENU="yes"
    WINDOWSTATE="normal"
    MAXIMIZEBUTTON="no"
    MINIMIZEBUTTON="no"
    SCROLL="no"
    SELECTION="no"
    VERSION="1.0"
>
<script language="VBScript">
Sub Window_onLoad
    window.resizeTo 740, 480
End Sub
</script>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>example hta functionality</title>

<style type="text/css">
body, html
     {
     background-color:black;
     }
</style>

<!--you get the idea-->


Hopefully this is helpful.

Good Luck.
BC
IHPIP
jwilson
 
Posts: 11
Joined: Thu May 06, 2010 9:58 am

Return to Delivery (LMS Tracking / SCORM / Offline Delivery)

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Not able to open ./cache/data_global.php