Want to use ASP to realize the background to add WMA video files, the foreground shows the added video file.
The ASP code that you can implement is as follows:
Copy Code code as follows:
<table border=1 cellpadding=4 cellspacing=0 width=500 align=center>
<tr>
<TD width= "236" Align=center class=tdc1></td>
</tr>
<%
Lurl= "Phage1.wma"
%>
<tr>
<TD valign=middle>
<%
Select Case Lcase (right (lurl,4))
Case ". swf"
%>
<p align=center>
<object classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 codebase=http://download.macromedia.com/pub/ shockwave/cabs/flash/swflash.cab#version=5,0,0,0 width=541 height=374>
<param name=movie value=<%=lurl%>> <param name=quality value=high> <EMBED SRC=<%=lurl%> Quality=high pluginspage=http://www.macromedia.com/shockwave/download/index.cgi? P1_prod_version=shockwaveflash Type=application/x-shockwave-flash width=541 height=374></embed>
</OBJECT>
<%
Case ". mpg"
%>
<p align=center>
<object align=middle classid=clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95 class=object id=MediaPlayer width=500 height=350 >
<param Name=showstatusbar value=-1>
<param name=filename Value=<%=replace (LURL,CHR), "%20", 1)%>>
<embed Type=application/x-oleobject codebase=http://activex.microsoft.com/activex/controls/mplayer/en/ nsmp2inf.cab#version=5,1,52,701 flename=mp Src=<%=replace (LURL,CHR), "%20", 1)%> width=500 height=100> </embed>
</object>
<%
Case ". mp3", ". Mid", ". wma"
%>
<p align=center>
<object align=middle classid=clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95 class=object id=MediaPlayer width=500 height=91 >
<param Name=showstatusbar value=-1>
<param name=filename Value=<%=replace (LURL,CHR), "%20", 1)%>>
<embed Type=application/x-oleobject codebase=http://activex.microsoft.com/activex/controls/mplayer/en/ nsmp2inf.cab#version=5,1,52,701 flename=mp Src=<%=replace (LURL,CHR), "%20", 1)%> width=500 height=91> </embed>
</object>
<%
Case Else
Select Case Lcase (right (lurl,3))
Case ". RM"
%>
<p align=center>
<object CLASSID=CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA class=object id=raocx width=500 height=350>
<param name=src Value=<%=lurl%>><param name=console value=clip1>
<param name=controls Value=imagewindow><param Name=autostart value=true>
</OBJECT>
<br>
<object CLASSID=CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA height=32 Id=video2 width=500>
<param name=src Value=<%=lurl%>><param Name=autostart value=-1>
<param name=controls Value=controlpanel><param name=console value=clip1>
</OBJECT>
<%
Case ". Ra"
%>
<p align=center>
<object CLASSID=CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA height=32 Id=video2 width=500>
<param name=src Value=<%=lurl%>><param Name=autostart value=-1>
<param name=controls Value=controlpanel><param name=console value=clip1>
</OBJECT>
<%
Case Else
%>
<p align=center>
<embed name=player src=<%=lurl%> type=audio/x-pn-realaudio-plugin width=300 height=350 border=0 autostart=1 ></embed>
<%
End Select
End Select%>
</td>
</table>