new30.asp

来自「全站生成htm静态页面」· ASP 代码 · 共 136 行

ASP
136
字号
<!--#include file="function.asp"-->
<%CheckAdmin3%>
<!--#include file="top.asp"-->
<%

filename="../js/new30.js"
if request("body")<>"" then
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set fout = fso.CreateTextFile(server.mappath(""&filename&""))
fout.Write request("body")
fout.close
set fout=nothing
set fso=nothing
mskrindex="ok"
end if

%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta copy="程序制作 冬筠 QQ:6387771; 盗版必究!">
<title></title>
<SCRIPT LANGUAGE="JavaScript">
helpstat = false;
stprompt = true;
basic = false;
function thelp(swtch){
	if (swtch == 1){
		basic = false;
		stprompt = false;
		helpstat = true;
	} else if (swtch == 0) {
		helpstat = false;
		stprompt = false;
		basic = true;
	} else if (swtch == 2) {
		helpstat = false;
		basic = false;
		stprompt = true;
	}
}

function AddText(NewCode) {
document.frmAnnounce.body.value+=NewCode
}

function runEx(){
//alert('请注意,按下确定将生成页面,按下后请稍后....');
var winEx = window.open("", "winEx", "width=300,height=200,status=yes,menubar=yes,scrollbars=yes,resizable=yes"); winEx.document.open("text/html", "replace"); 
winEx.document.write(unescape(event.srcElement.parentElement.children[2].value)); 
winEx.document.close(); 
}
</SCRIPT>
<script language="Javascript">
<!-- hide

function insertsmilie(smilieface){

	document.frmAnnounce.body.value+=smilieface;
}
// -->
</script>
<style>
td{font-size:9pt;line-height:140%} 
body{font-size:9pt;line-height:140%} 
a:link       { color: #0033CC; text-decoration: none }
a:visited    { color: #0033CC; text-decoration: none }
a:active     { color: #FF0000; text-decoration: none }
a:hover      { color: #000000; text-decoration: underline}
</style>
</head>
<body topmargin="1" leftmargin="1">
<%if mskrindex="ok" then%>
<table border="0" cellspacing="0" style="border-collapse: collapse" width="100%" cellpadding="0">
  <tr>
    <td width="100%"><font color="#FF0000">·</font>成功生成最新MTV js,时间<%=Now()%><br><font color="#FF0000">·</font><a target="_blank" href="<%=filename%>"><%=filename%></a></td>
  </tr>
</table>
<%else%>
<div align=center>
<table border="0" cellspacing="1" style="border-collapse: collapse" width="96%" bgcolor="#888888" height="500">
<form name="frmAnnounce" method="post" action="new30.asp">
  <tr>
    <td width="100%" bgcolor="#FFFFFF" height="30">
    <b><font color="red">生成最新MTV js&nbsp; 生成文件</font>:<a class=JyDownSort target="_blank" href="<%=filename%>"><%=filename%></a> </b></td>
  </tr>
  <tr>
    <td width="100%" bgcolor="#FFFFFF" height="450"><textarea style="width:100%; height:100%;" rows="19" name="body" cols="102">
 <!--#include file="conn.asp"-->
     <%
f=0
musicsql = "SELECT * from Mtvlist ORDER BY mtvlistID DESC"
Set musicrs = Server.CreateObject("ADODB.Recordset")
musicrs.OPEN musicsql,Conn,1,1
if musicrs.bof and musicrs.eof then
response.write "没有任何MTV歌曲"
else
do while not musicrs.eof
%>
document.writeln("<TR bgColor=#ffffff>");
document.writeln("              <TD width=\"50%\"><img src=\"..\/103\/icon_album.gif\" width=\"13\" height=\"11\"> <a ");
document.writeln("");
document.writeln("href=\"..\/html\/<%=musicrs("mtvlistID")%>.htm\" target=_blank><INPUT class=MQ ");
document.writeln("                                onmouseover=\'mQee.set(this); setCfg=setInterval");
document.writeln("");
document.writeln("(\"mQee.scroll()\", 180);\' ");
document.writeln("                                style=\"WIDTH: 90px\" ");
document.writeln("                                onmouseout=\"clearInterval(setCfg); mQee.init();\" ");
document.writeln("                                readOnly ");
document.writeln("                                value=\"<%=musicrs("name")%>\"><\/a><\/TD>");
document.writeln("              <TD width=\"20%\"><font color=\"red\"><a href=\"..\/index\/<%=musicrs("NClassID")%>_1.htm\" target=_blank><%=musicrs("NClass")%><\/a><\/font><\/TD>");
document.writeln("              <\/TR>")
<%
musicrs.movenext
f=f+1
if f="30" then exit do
loop
end if
musicrs.Close
%>
    
    </textarea></td>
  </tr>
  <tr>
    <td width="100%" bgcolor="#f0f0f0">
    <p align="center">        
    <input name="change" class=buttonface value="生成(JS)" type='submit'> </td>
  </tr>
</form>
</table>
<%end if
%>   
</body>    
</html>

⌨️ 快捷键说明

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