Scenario 5


Your Code

function startContent()
{
   // code to start an internal timer
   startTimer();
   var timeLimitAction =
   GetValue( "cmi.time__action" );

   // currentElapsedTime is a variable
   // set during the startTimer() function
   if ( currentElapsedTime > 120 )
   {
      if ( timeLimitAction ==
	  "" )
      {
         // continue to the next SCO
      }
   }
}
					


Code Example

function startContent()
{
   // code to start an internal timer
   startTimer();
   var timeLimitAction =
   GetValue( "cmi.time_limit_action" );

   // currentElapsedTime is a variable
   // set during the startTimer() function
   if ( currentElapsedTime > 120 )
   {
      if ( timeLimitAction ==
	  "continue,no message" )
      {
         // continue to the next SCO
      }
   }
}