1, start Dreamweaver
1 Click "Start-All Programs-macromedia-macromedia Dreamweaver 8",
2 in the middle of the "Create a new project" midpoint of the first HTML, open a blank document, the title changed to "background music";
3 point "file-save" command, to Chryy for file name save files, save location in the established site;
4 in the right side of the sidebar site, find the last new folder music, find a favorite song, drag it to the folder inside;
In this lesson, a M1 file in the Images folder can be used as an exercise, which is WMA format;
2. Insert Music
1 in the label below the "document" toolbar in the "Split" tab, the window is divided into two parts, the top is the code, below is the document;
2 in the above Code window, find the <body> tag, click the mouse behind it, and then click the ENTER key to insert a blank line,
3 Switch to the English Input method status, enter the following code:
<embed src= "music/m1.wma" width= "height=" "40"
controls= "ControlPanel" loop= "false" autostart= "false"
Type= "Audio/x-pn-realaudio-plugin" initfn= "Load-types" ></embed>
Enter the time will be prompted, the words inside the code tag, double quotes inside the parameter value, loop is the meaning of the loop, Autostart is the automatic playback, here are false, that is, do not mean;
Save the file, click the Preview button, point to the left of the play button, listen to melodious music;
Stop music can point to stop the player on the button, to play other music, as long as you modify the SRC tag behind the music address can be;