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 / GifAdditionalembed.js2215 < prev    next >
Text File  |  2009-08-17  |  926b  |  28 lines

  1.    function SwitchPlayer( elementId, styleId, VideoFileName, VideoWidth, VideoHeight, MediaDirectory, toc1, toc2 )
  2.    {        
  3.       var n = (typeof elementId == 'string') ? document.getElementById( elementId ) : elementId;
  4.       n.innerHTML = getGIFHTML( styleId, VideoFileName, VideoWidth, VideoHeight, MediaDirectory, toc1, toc2 );
  5.       return true;
  6.    }  
  7.       
  8.    function getGIFHTML( divId, VideoFileName, VideoWidth, VideoHeight, MediaDirectory, 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.         
  20.       var node = '<div id="' + divId + '">' 
  21.             + toc1
  22.             + '<img src="' + MediaDirectory + VideoFileName +'" width="' + VideoWidth + '" height="' + VideoHeight + '" alt=""/>'            
  23.             + toc2
  24.             + '</div>';
  25.      
  26.       return node;
  27.    }  
  28.