當前位置:編程學習大全網 - 源碼下載 - asp所有電影***用壹個播放頁面(80分)

asp所有電影***用壹個播放頁面(80分)

讀取地址欄的ID

做記錄集讀取該ID的電影地址

例如,妳當前的地址及ID值為 look.asp?id=15

那麽在loog.asp頁作壹個記錄集,調出該ID值的相應該電影地址

<%

vod_id = request.querystring("id")

sql = "select * from vod(就是電影所在數據庫的表) where id = "& vod_id

set rs = server.CreateObject("adodb.recordset")

rs.open sql,conn,1,1

vod_url = rs("vod_url") '調出該ID值相應的電影地址,在下面的播放器調用

rs.close

set rs=nothing

%>

<object ID="rPlayer" CLASSID="clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" HEIGHT="100%" WIDTH="100%">

<param name="_ExtentX" value="15478">

<param name="_ExtentY" value="8361">

<param name="AUTOSTART" value="-1">

<param name="SHUFFLE" value="0">

<param name="PREFETCH" value="0">

<param name="NOLABELS" value="0">

<param name="SRC" value="<%=vod_url%>"> //這裏就是讀取上面所調出的電影地址

<param name="CONTROLS" value="ImageWindow">

<param name="CONSOLE" value="Clip1">

<param name="LOOP" value="0">

<param name="NUMLOOP" value="0">

<param name="CENTER" value="0">

<param name="MAINTAINASPECT" value="0">

<param name="BACKGROUNDCOLOR" value="#000000"></DIV>

</object>

<script language="javascript">

rPlayer.SetEnableContextMenu(false);

rPlayer.SetWantErrors(true);

</script>

其它控制代碼:

<tr>

<td>

<table id="scroll01" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">

<tr>

<td background="image/scroll_02.gif" width="3%">

<img border="0" src="image/scroll_01.gif" width="3" height="15"></td>

<td background="image/scroll_02.gif" width="2%" align="right">

<img border="0" src="image/scroll_03.gif" width="2" height="15"></td>

<td background="image/scroll_04.gif" width="70%">

<DIV onMouseUp="Total_Up()" onMouseMove="scrollPositionMouseMove(this, event)" onMouseOut="scrollPositionMouseOut()" onMouseDown="ChangePos()" id="movie" style="CURSOR: hand; POSITION: relative; TOP: 1px; LEFT: 0px; WIDTH: 100%; HEIGHT: 8px"><DIV id="mblock" style="LEFT: 0px; POSITION: absolute; TOP: 0px; HEIGHT: 8px"><IMG alt="播放進度" src="image/scroll_07.gif" width="20" height="8" border="0"></DIV>

<DIV id="scrollInfo" style="BORDER: orange 1px ridge; FONT-SIZE: 9px; VISIBILITY: hidden; BACKGROUND: #c0c0c0; POSITION: absolute; zIndex: 9">00:00</DIV>

</DIV>

</td>

<td background="image/scroll_02.gif" width="10%">

<img border="0" src="image/scroll_05.gif" width="2" height="15"></td>

<td align="center" background="image/scroll_02.gif" width="9%">

<img border="0" src="image/scroll_08.gif" width="2" height="14"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_09.gif" width="7" height="15" alt="左聲道" onMouseDown="rPlayer.Balance=-10000" onMouseOver="this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_08.gif" width="2" height="14"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_10.gif" width="7" height="15" alt="立體聲" onMouseDown="rPlayer.Balance=0" onMouseOver="this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_08.gif" width="2" height="14"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_11.gif" width="7" height="15" alt="右聲道" onMouseDown="rPlayer.Balance=10000" onMouseOver="this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="1" height="1"><img border="0" src="image/scroll_08.gif" width="2" height="14"></td>

<td align="right" background="image/scroll_02.gif" width="6%">

<img border="0" src="image/scroll_06.gif" width="4" height="15"></td>

</tr>

</table>

<table id="toole" border="0" cellpadding="0" cellspacing="0" style="display:block; border-collapse: collapse" bordercolor="#111111" width="100%" background="image/toole_02.gif">

<tr>

<td background="image/toole_02.gif">

<img border="0" src="image/toole_01.gif" width="4" height="49"><img border="0" src="image/1pix.gif" width="10" height="1"><img id="pp001" border="0" src="image/toole_04.gif" width="36" height="49" ALT="播放" onMouseDown="Playorpasue()" onMouseOut="this.src='image/toole_04.gif'" onMouseOver="this.src='image/toole_04_over.gif';this.style.cursor='hand'"><img border="0" src="image/toole_05.gif" width="25" height="49" ALT="停止" onMouseDown="Stop()" onMouseOut="this.src='image/toole_05.gif'" onMouseOver="this.src='image/toole_05_over.gif';this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="10" height="1"><img border="0" src="image/toole_06.gif" width="25" height="49" ALT="快退" onMouseDown="BackpositionSet()" onMouseOut="this.src='image/toole_06.gif'" onMouseOver="this.src='image/toole_06_over.gif';this.style.cursor='hand'"><img border="0" src="image/toole_07.gif" width="25" height="49" ALT="快進" onMouseDown="FastpositionSet()" onMouseOut="this.src='image/toole_07.gif'" onMouseOver="this.src='image/toole_07_over.gif';this.style.cursor='hand'"><img border="0" src="image/1pix.gif" width="6" height="1"></td>

<td background="image/toole_02.gif" align="right">

<img src="image/toole_08.gif" style="cursor:hand;" alt="靜音" name="silent" width="26" height="49" onClick="vbscript:Mute" border="0"></td>

<td background="image/toole_02.gif" style="background-repeat: no-repeat;">

<DIV onMouseUp="Total_Up()" onMouseMove="volgo()" id="volume" style="LEFT: 0px; WIDTH: 70px; POSITION: relative;HEIGHT: 23px" valgin="top" align="center"><DIV id="vblock"><IMG src="image/toole_16.gif" width="25" height="49" border="0" ALT="減小音量" onMouseDown="RealdecreseVolume()" onMouseOut="this.src='image/toole_16.gif'" onMouseOver="this.src='image/toole_16_over.gif';this.style.cursor='hand'"><IMG src="image/toole_17.gif" width="25" height="49" border="0" ALT="增強音量" onMouseDown="RealincreaseVolume()" onMouseOut="this.src='image/toole_17.gif'" onMouseOver="this.src='image/toole_17_over.gif';this.style.cursor='hand'"></DIV>

</DIV>

</td>

<td style="background-repeat: no-repeat;">

<MARQUEE id="Play_Mess" WIDTH="100" SCROLLAMOUNT="8" SCROLLDELAY="200" style="margin-left: 8; margin-right: 10;"><FONT color=#284717 size=2></FONT>

</MARQUEE> </td>

<td background="image/toole_02.gif">

<img border="0" src="image/1pix.gif" width="6" height="1"><img border="0" src="image/toole_09.gif" width="25" height="49" alt="全屏播放" onMouseDown="DoFull()" onMouseOut="this.src='image/toole_09.gif'" onMouseOver="this.src='image/toole_09_over.gif';this.style.cursor='hand'"><img border="0" src="image/toole_10.gif" width="25" height="49" alt="精簡模式" onClick="mini(1);" onMouseOut="this.src='image/toole_10.gif'" onMouseOver="this.src='image/toole_10_over.gif';this.style.cursor='hand'"></td>

<td background="image/toole_02.gif" align="right"> <img border="0" src="image/toole_14.gif" width="4" height="49"></td>

</tr>

</table>

<table id="minitoole" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; display:none;" bordercolor="#111111" width="100%">

<tr>

<td width="33%" background="image/miniToole_02.gif">

<img border="0" src="image/miniToole_01.gif" width="3" height="20"><img border="0" src="image/1pix.gif" width="10" height="1"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_04.gif" width="18" height="20" ALT="播放" onMouseDown="play()" onMouseOver="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_05.gif" width="18" height="20" ALT="暫停" onMouseDown="pause()" onMouseOver="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_06.gif" width="18" height="20" ALT="停止" onMouseDown="Stop()" onMouseOver="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_07.gif" width="18" height="20" ALT="快退" onMouseDown="BackpositionSet()" onMouseOver="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_08.gif" width="18" height="20" ALT="快進" onMouseDown="FastpositionSet()" onMouseOver="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_09.gif" width="33" height="20" alt="全屏播放" onMouseDown="DoFull()" onMouseOver="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_10.gif" width="33" height="20" alt="正常模式" onClick="mini(0);" onMouseOver="this.style.cursor='hand'"><img border="0" src="image/miniToole_03.gif" width="6" height="20"><img border="0" src="image/miniToole_03.gif" width="6" height="20"></td>

<td width="33%" background="image/miniToole_02.gif"></td><td width="34%" background="image/miniToole_02.gif" align="right"></td></tr></table></td></tr></TABLE>

</center>

</td>

</tr>

</table>

</td>

</tr>

  • 上一篇:璺眰qq鐐垶姝屽柈
  • 下一篇:linux和python先學哪個
  • copyright 2024編程學習大全網