149、MIDI音乐选择

149MIDI音乐选择

脚本说明:

把如下代码加入<body>区域中:

<SCRIPT LANGUAGE="JavaScript">

 

<!--

function PlaySong(SongURL)

{

 

PopUp = window.open (SongURL, "Crescendo", "toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizeable=no,copyhistory=no,width=200,height=30")

 

}

//-->

 

</SCRIPT>

<FORM NAME="midiform"><SELECT NAME="list"><OPTION VALUE="song4.mid" [SELECTED]>MIDI1_NAME

<OPTION VALUE="song2.mid">MIDI2_NAME

<OPTION VALUe="song3.mid">MIDI3_NAME

</SELECT>

<P><INPUT TYPE=BUTTON VALUE="PLAY MIDI" onClick="PlaySong(midiform.list.options[midiform.list.selectedIndex].value)">

</FORM>

 

 

Write a comment

Comments: 0