output.asp

来自「asp的新闻网站」· ASP 代码 · 共 82 行

ASP
82
字号
<%Response.Buffer=true%>
  <!--#include file="../include/odbc.asp" -->
<!--#include file="../include/killStr.asp" -->
<!--#include file="../include/checkUser.asp" -->
<!--#include file="../include/checkServer.asp" -->
<%
'修改:潘树文
'时间:2001年2月9日
%>
<!--
Programmer:jin kai 
Update:2000.8.15
CopyRight:东宇电子商务
-->


<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>今日天气</title>
<link rel=stylesheet href="style.css" type=text/css>

</head>
<%
Dim city,direction,power,status,temperature
Dim rs
Dim sql
Set rs=Server.CreateObject("ADODB.Recordset")
sql = "Select * From weather_Info"
rs.open sql,conn,3,1

%>  

<body>
<body bgcolor="#FFFFE0">
<table border="1" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="66%" align="center">今日天气</td>
  </tr>
  <tr>
    <td width="66%" align="center">
    
    
      <table border="0" width="100%">


        <tr>
          <td width="100%" align="center">
   	<marquee behavior=scroll direction=up width=320 height=60 scrollamount=1 scrolldelay=120 onmouseover="this.stop()" onmouseout="this.start()">  
 <%While Not rs.Eof 
	City = left(trim(rs("city"))+chr(255)+chr(255)+chr(255)+chr(255)+chr(255)+chr(255)+chr(255),5)
	status = left(trim(rs("status"))+chr(255)+chr(255)+chr(255)+chr(255)+chr(255)+chr(255)+chr(255),5)
	power = left(trim(rs("power"))+chr(255)+chr(255)+chr(255)+chr(255)+chr(255)+chr(255)+chr(255),5)
	direction = left(trim(rs("direction"))+chr(255)+chr(255)+chr(255)+chr(255)+chr(255)+chr(255)+chr(255),4) 
    Response.Write city &status & direction & power & rs("temperature")  & " ℃ <br>"
	rs.MoveNext 
  Wend
  
rs.Close 
Set rs = nothing
conn.close
Set conn = nothing
  
%>              
  </marquee>               
          </td>    
        </tr>    
         
            
      </table>    
          
    </td>    
  </tr>    
</table>    
 <p align="center"><a href="../user/loginProcess.asp" target="_top">返回</a></p>   
</body>    
    
</html> 

⌨️ 快捷键说明

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