⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 out_movie_js.asp

📁 8款下载系统源代码 2003-3-11 21:37:45 433 949k · 都很常见: 猛虎山庄、燕衔泥(飞扬的软件第二版用的就是他
💻 ASP
字号:
<!--#INCLUDE FILE="conn.asp" -->
<%
  set js = server.CreateObject("ADODB.RecordSet")
  strSql = "SELECT TOP 10 * FROM download where classid=10 ORDER BY dateandtime DESC"
  set js = conn.Execute (StrSql)
do until js.eof
    showname=js("showname")
	if len(showname)>12 then
		title=left(showname,12)+"..."
	else
		title=showname
	end if
    note=js("note")
	if len(note)>27 then
		txt=left(note,27)+"..."
	else
	   if len(note)<12 then
	    txt=""&note&"<br>---"
	   else
		txt=note
	   end if
	end if
tmp = "http://" & request.servervariables("SERVER_NAME") & _            
left(request.servervariables("SCRIPT_NAME"),len(request.servervariables("SCRIPT_NAME"))-len("/admin/out_movie_js.asp"))
   foolcat = foolcat + "·<a href="&tmp&"/list.asp?id="&js("id")&" target=_blank>" & title & "</a><br>"
js.MoveNext
loop
'生成JS文件
foolcat = "" + foolcat + ""
foolcat = "document.write('" & foolcat & "')"
FolderPath = Server.MapPath("../")
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set fout = fso.CreateTextFile(FolderPath&"\movie.js")
fout.WriteLine foolcat
'关闭连接
fout.close
set fout = nothing
js.close
set js = nothing
conn.close
set conn=nothing
%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<link rel="stylesheet" type="text/css" href="style.css">
</head><body bgcolor="#468ea3"><p align=center><FONT color="#FFFFFF">成功生成电影JS,请继续其他操作。</FONT></p>
</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -