Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 29th, 2012  |  syntax: None  |  size: 2.83 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2. <html>
  3.         <head>
  4.                 <title>Simple MP3 Player</title>
  5.                 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  6.         </head>
  7.  
  8.  
  9.         <body bgcolor="#DDDDDD" style="margin:0;padding:0;" scroll="yes">
  10.  
  11.         <script type="text/javascript" src="js/swfobject.js"></script>
  12.                 <script type="text/javascript">
  13.  
  14.                         // JAVASCRIPT VARS
  15.                         // cache buster
  16.                         var cacheBuster = "?t=" + Date.parse(new Date());
  17.            
  18.             // swf path
  19.             var swfPath = "http://www.flabell.com/files/37_e0204_5b6bc6be7b7f3ee7864af6a37573b931/deploy/preview.swf";
  20.             //swfPath += cacheBuster; // uncomment this line to activate the cache buster
  21.            
  22.                        
  23.                         // stage dimensions
  24.                         var stageW = 500;//560;//"100%";
  25.                         var stageH = 78;//300;//"100%";
  26.                        
  27.                        
  28.                         // ATTRIBUTES
  29.                     var attributes = {};
  30.                     attributes.id = 'FlabellComponent';
  31.                     attributes.name = attributes.id;
  32.                    
  33.                         // PARAMS
  34.                         var params = {};
  35.                         params.allowfullscreen = "true";
  36.                         params.allowScriptAccess = "always";
  37.                         params.bgcolor = "#ffffff";
  38.                         params.wmode = "transparent";
  39.                        
  40.  
  41.                     /* FLASH VARS */
  42.                         var flashvars = {};                            
  43.                        
  44.                         /// if commented / delete these lines, the component will take the stage dimensions defined
  45.                         /// above in "JAVASCRIPT SECTIONS" section or those defined in the settings xml                
  46.                         flashvars.componentWidth = stageW-1;//281; // define these dimensions different then the stage dimension only for preview because the component is samller then the stage
  47.                         flashvars.componentHeight = stageH-1;//78;
  48.                        
  49.                         /// path to the content folder(where the xml files, images or video are nested)
  50.                         /// if you want to use absolute paths(like "http://domain.com/images/....") then leave it empty("")
  51.                         flashvars.pathToFiles = "";
  52.                         flashvars.xmlPath = "http://www.flabell.com/files/37_e0204_5b6bc6be7b7f3ee7864af6a37573b931/deploy/player/xml/settings.xml";
  53.                        
  54.                         // other vars
  55.                         flashvars.artistName = "Mr Lonely";
  56.                         flashvars.songName = "Akon";
  57.                         flashvars.songURL = "http://fredeeky.typepad.com/fredeeky/files/akon_mr.Lonely.mp3";                   
  58.                                                
  59.                        
  60.                         /** EMBED THE SWF**/
  61.                         swfobject.embedSWF(swfPath, attributes.id, stageW, stageH, "9.0.124", "http://www.flabell.com/files/37_e0204_5b6bc6be7b7f3ee7864af6a37573b931/deploy/js/expressInstall.swf", flashvars, params);
  62.                 </script>
  63.        
  64.                 <table width="100%" height="100%" cellpadding="0" cellspacing="0">
  65.                         <td align="center">
  66.                                
  67.                                 <!-- this div will be overwritten by SWF object -->            
  68.                                 <div id="FlabellComponent">
  69.                                         <p>In order to view this object you need Flash Player 9+ support!</p>
  70.                                         <a href="http://www.adobe.com/go/getflashplayer">
  71.                                                 <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/>
  72.                                         </a>
  73.                                 </div>
  74.                        
  75.                         </td>
  76.                 </table>
  77.        
  78.         </body>
  79.        
  80. </html>