📄 scrollinfo.asp
字号:
<!--#include file="../conn.asp"-->
<%
if session("username")="" or session("password")="" then
session.timeout=5
response.write "<script language='javascript'>"
response.write "alert('账号或密码错误!');"
response.write "history.go(-1);"
response.write "</script>"
response.end
else
username=session("username")
end if
Set rs= Server.CreateObject("ADODB.Recordset")
sql1="select * from user where username like '" & username & "' "
rs.open sql1,conn,3,2
%>
<html>
<head>
<style>
<!--
p{color:000000;FONT-FAMILY: "??"; font-size: 9pt ;line-height: 20px;}
a {color:#000000;FONT-FAMILY: "??"; font-size: 9pt ;text-decoration:none}
a:hover {color:red;text-decoration:underline;; FONT-FAMILY: "??"; font-size: 9pt}
-->
<!--
a:link {FONT-FAMILY: "??"; font-size: 9pt; color:#000000; text-decoration: none}
td { color:#0000000;FONT-FAMILY: "??"; font-size: 9pt ;line-height: 18px; } a:visited {FONT-FAMILY: "??"; font-size: 9pt; color:#000000}
-->
</style>
<style>
<!--
p{color:000000;FONT-FAMILY: "宋体"; font-size: 9pt ;line-height: 18px;}
a {color:#000000;FONT-FAMILY: "宋体"; font-size: 9pt ;text-decoration:none}
a:hover {color:red;text-decoration:underline;; FONT-FAMILY: "宋体"; font-size: 9pt}
-->
a:link {FONT-FAMILY: "宋体"; font-size: 9pt; color:#000000; text-decoration: none}
td { color:#0000000;FONT-FAMILY: "宋体"; font-size: 9pt ;line-height: 18px; } a:visited {FONT-FAMILY: "宋体"; font-size: 9pt; color:#000000}
-->
</style>
<script>
function checkForm()
{
if (document.other.other.value.length > 500)
{
alert("最多不能多于500个字!");
return false;
}
if (document.other.other.value.length == 0)
{
alert("你提交的信息为空!");
return false;
}
return true;
}
</script>
<title>首页滚动信息</title>
<link rel="stylesheet" type="text/css" href="../css.css">
</head>
<body bgcolor="#7bb5de">
<div align="center">
<form name="other" METHOD="post" action="addinfo.asp" onsubmit="return checkForm()" >
<div align="center">
<center>
<table border="1" cellpadding="4" class=lowcolor cellspacing="0" bordercolor="#7bb5de" style="border-collapse: collapse">
<tr >
<td valign="top" align="center" width="100%" height="28"> <span style="font-size: 14px; font-weight: 700">首
页 滚 动 信 息</span></td>
</tr>
<tr>
<td valign="top" align="right" width="100%">
<p align="left">
<textarea rows="7" name="other" cols="59"><%=rs("other")%></textarea>
</td>
</tr>
<tr>
<td valign="top" align="center">
<div align="center">
<input type="submit" value=" 发布首页信息 " name="submit" class="lkbtn"></div>
</td>
</tr>
</table>
</center>
</div>
</form>
</div>
</body>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -