ASP implementation background Add WMA video file foreground display _ Application skills

Source: Internet
Author: User
Tags chr
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>
&LT;TD width= "236" Align=center class=tdc1></td>
</tr>
<%
Lurl= "Phage1.wma"
%>
<tr>
&LT;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>
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.