home *** CD-ROM | disk | FTP | other *** search
/ ftp.novell.com / 2014.06.ftp.novell.com.tar / ftp.novell.com / forge / camtasia.msi / Cabs.w1.cab / rmAdditionalembed.js2280 < prev    next >
Text File  |  2009-08-17  |  2KB  |  45 lines

  1.    function SwitchPlayer( elementId, styleId, VideoFileName, VideoWidth, VideoHeight, ActualVideoHeight, MediaDirectory, ObjectIDName, ObjectType, EmbedType, EmbedPluginsPage, ParamLoop, ParamControls, ParamConsole, ParamAutoStart, RMControllerWidth, RMControllerHeight, RMControllerControls, toc1, toc2 )
  2.    {        
  3.       var n = (typeof elementId == 'string') ? document.getElementById( elementId ) : elementId;
  4.       n.innerHTML = getRMHTML( styleId, VideoFileName, VideoWidth, VideoHeight, ActualVideoHeight, MediaDirectory, ObjectIDName, ObjectType, EmbedType, EmbedPluginsPage, ParamLoop, ParamControls, ParamConsole, ParamAutoStart, RMControllerWidth, RMControllerHeight, RMControllerControls, toc1, toc2 );
  5.       return true;
  6.    }  
  7.    
  8.    function getRMHTML( divId, VideoFileName, VideoWidth, VideoHeight, ActualVideoHeight, MediaDirectory, ObjectIDName, ObjectType, EmbedType, EmbedPluginsPage, ParamLoop, ParamControls, ParamConsole, ParamAutoStart, RMControllerWidth, RMControllerHeight, RMControllerControls, toc1, toc2 ) 
  9.    {
  10.       if ( toc1 == undefined || toc1 == null )
  11.         {
  12.             toc1 = "";
  13.         }
  14.         
  15.         if ( toc2 == undefined || toc2 == null )
  16.         {
  17.            toc2 = "";    
  18.         }
  19.       var node = '<div id="' + divId + '">' 
  20.                 + toc1
  21.                 + '<EMBED name        ="' + ObjectIDName + '"'
  22.                 + 'src         ="' + MediaDirectory + VideoFileName + '"'
  23.                 + 'width       ="' + VideoWidth + '"'
  24.                 + 'height      ="' + ActualVideoHeight + '"'
  25.                 + 'loop        ="' + ParamLoop + '"'
  26.                 + 'type        ="' + EmbedType + '"'
  27.                 + 'controls    ="' + ParamControls + '"'
  28.                 + 'console     ="' + ParamConsole + '"'
  29.                 + 'autostart   ="' + ParamAutoStart + '"'
  30.                 + 'pluginspage ="' + EmbedPluginsPage + '" >'
  31.                 + '</EMBED>'
  32.                 + '<BR><EMBED src       = "' + MediaDirectory + VideoFileName + '"'
  33.                 + 'width     = "' + RMControllerWidth + '"'
  34.                 + 'height    = "' + RMControllerHeight + '"'
  35.                 + 'controls  = "' + RMControllerControls + '"'
  36.                 + 'type      = "' + ObjectType + '"'
  37.                 + 'console   = "' + ParamConsole + '"'
  38.                 + 'autostart = "' + ParamAutoStart + '" >'
  39.                 + '</EMBED>'
  40.                 + toc2
  41.                 + '</div>';
  42.                        
  43.       return node;
  44.    }  
  45.