Play a midi file (.mid) on your browser (HTML).

vegaseat vegaseat is online now Online Jan 4th, 2005, 3:45 pm |
0
Lots of good instrumental music out on the web in the form of midi files. You can incorporate background music as part of your web page. Here is the short code.
Quick reply to this message  
HTML and CSS Syntax
  1. <HTML>
  2.  
  3. <!-- Experiments with midi sound vegaseat -->
  4. <!-- embed src, hidden, autostart, loop -->
  5.  
  6. <HEAD>
  7.  
  8. <TITLE>Embedded MIDI</TITLE>
  9.  
  10. </HEAD>
  11.  
  12. <body bgcolor="#FFFF00" text="#FF66CC">
  13.  
  14. <center>
  15. <h2>This starts the midi file automatically!</h2>
  16. </center>
  17.  
  18. <!-- the given midi file comes with Win XP, you may need to change this -->
  19. <!-- to something you have!!!!!!!!!! -->
  20. <!-- hide play buttons, autostart and loop once -->
  21. <EMBED SRC="C:\Windows\Media\Onestop.mid" hidden=true autostart=true loop=1>
  22.  
  23. </body>
  24. </HTML>

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC