You can add audio (sound) to your web page that will be compatible with both Internet Explorer and Netscape Navigator. Add the following code to the HTML of your web page where you would like the control panel to display.
<EMBED src="yourfile.mid" autostart="true" loop="false" hidden="false"> <noembed> <bgsound src="yourfile.mid" loop="1"> </noembed> |
Change the text indicated in red to your sound file.
The "autostart" determines whether or not the music will play when the page loads. "True" specifies that the music will start on load and "False" specifies that music will not start on load.
The "loop" determines how the music should be played. "False" specifies that the music should not loop and will play it through one time. "True" specifies that the music should loop and play continuously. It is highly recommended that you leave this set on false.
The "hidden" specifies whether or not the music's control panel should be displayed. "True" specifies that the control panel should be hidden. "False" specifies that the control panel should be displayed. It is highly recommended that you leave this set on false. This will enable your visitors to stop the music if they prefer.
The "autostart" determines whether or not the music will play when the page loads. "True" specifies that the music will start on load and "False" specifies that music will not start on load.
The "loop" determines how the music should be played. "False" specifies that the music should not loop and will play it through one time. "True" specifies that the music should loop and play continuously. It is highly recommended that you leave this set on false.
The "hidden" specifies whether or not the music's control panel should be displayed. "True" specifies that the control panel should be hidden. "False" specifies that the control panel should be displayed. It is highly recommended that you leave this set on false. This will enable your visitors to stop the music if they prefer.
0 comments:
Post a Comment