2008-03-06 22:29
2008-01-23 13:47
2008-01-05 20:46
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">
| |
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分钟后自动关闭:
在弹出的页面里加入这个: |
2007-08-21 14:00
asp在UTF-8下中文显示乱码,如何解决?
首先文件要保存为UTF-8格式,另外在编码申明中指定为UTF-8编码;
--------------------------------------------------------
将ASP页面存为UTF-8格式,然后在文件开始处加上这两句:
<%
session.codepage = 65001
Response.CharSet = "utf-8"
%>
|
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> "");" |
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 |
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、在重新调用原页面的时候在给页面传一个 |
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 |
|
|
ozzie
男, 27岁
辽宁 大连
上次登录: 6天前
加为好友
|