百度首页 | 百度空间
 
文章列表
 
您正在查看 "技术文章" 分类下的文章

2008-08-14 17:07
基本格式 :
*  *  *  *  *  command
分 时 日 月 周 命令

第1列表示分钟1~59 每分钟用*或者 */1表示
第2列表示小时1~23(0表示0点)
第3列表示日期1~31
第4列表示月份1~12
第5列标识号星期0~6(0表示星期天)
第6列要运行的命令

crontab文件的一些例子:

30 21 * * * /usr/local/etc/rc.d/lighttpd restart
上面的

类别:技术文章 | 评论(0) | 浏览()
 
2008-01-23 13:47

在网页中添加,在线QQ功能, 点击直接可与QQ交谈.

地址: http://imis.qq.com/webpresence/code.shtml

类别:技术文章 | 评论(0) | 浏览()
 
2007-08-31 15:13
Html+Asp+Php+Jsp:4种语言禁止浏览器缓存页面的方法
HTTP:
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
<META HTTP-EQUIV="expires" CONTENT="0">
类别:技术文章 | 评论(0) | 浏览()
 
2007-08-22 10:51
自动弹处   
   <script    language="JavaScript">   
   window.open('a.html','GameWindowss','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,left=0,top=0,width=420,height=340,');   
    
   </script>   
   且该窗口3分钟后自动关闭:   
   在弹出的页面里加入这个:
类别:技术文章 | 评论(0) | 浏览()
 
2007-08-21 14:00

asp在UTF-8下中文显示乱码,如何解决?

首先文件要保存为UTF-8格式,另外在编码申明中指定为UTF-8编码;

--------------------------------------------------------

将ASP页面存为UTF-8格式,然后在文件开始处加上这两句:
<%
session.codepage = 65001  
Response.CharSet = "utf-8"
%>

类别:技术文章 | 评论(0) | 浏览()
 
2007-08-12 09:40

方法如下:

<script language="javascript" src="asdf.asp"></script>

asdf.asp如下:

-----asdf.asp文件----------
<!--#include file="conn.asp"-->
<%
cname=request.QueryString("cname")
turl=request.ServerVariables("URL")
sql="select gongsi from company where cname='"+cname+"'"
rs.open sql,connstr,1,1
do while not rs.eof
Response.Write "document.write("" <table width=100% border=0><tr bgcolor=#ECE9D8> "");"

类别:技术文章 | 评论(0) | 浏览()
 
2007-08-11 14:10
<%
webcharset="utf-8"
Response.Write("<?xml version=""1.0"" encoding="""&webcharset&"""?>")
Response.Write("<guestbook>")
Response.Write("<info>")
Response.Write("<pagecount>aaaaaaaaaaaaaa</pagecount>")
Response.Write("<page>bbbbbbbbbbbbbbbb</page>")
Response.Write("<num>cccccccccccc</num>")
Response.Write("<totalnum>dddddddddddddddddddd</totalnum>")
Response.Write("</in
类别:技术文章 | 评论(0) | 浏览()
 
2007-08-11 10:21

1、在Asp页面首部加入
Response.Buffer = True
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "No-Cache"

2、在HtML代码中加入
<HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
</HEAD>

3、在重新调用原页面的时候在给页面传一个

类别:技术文章 | 评论(0) | 浏览()
 
2007-08-10 21:38

实现JS延时代码如下:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>javascript的setTimeout实现延时</title>
<script language="javascript">
function r1()
{
setTimeout("r2()",2000);

}
function r2()
{
     alert("OK");
}
</script>
</head>
<body>
setTimeout
<input name="uu" type="button" id="u

类别:技术文章 | 评论(0) | 浏览()
 
2007-08-09 18:48

以下代码用FSO组件生成一个名为test1.xml的文档:

<%
xmlfile=server.mappath("test1.xml")
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile = fso.CreateTextFile(xmlfile,True)
MyFile.WriteLine("<?xml version=""1.0"" encoding=""gb2312""?>")
MyFile.WriteLine("<世界>")
MyFile.WriteLine("<你好>hello,world</你好>")
MyFile.WriteLine("</世界>")
MyFile.Close
%>

类别:技术文章 | 评论(0) | 浏览()
 
     
 
 
文章分类
 
     
 
文章存档
 
 
 
 
 
 
     
 
最新文章评论
   
     


©2008 Baidu