预览模式: 普通 | 列表

ASP随机数参考

Rnd 函数 语言参考
--------------------------------------------------------------------------------

描述
返回一个随机数。

查看更多...

分类:应用开发 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2206

最简单的ASP验证码程序

1、取得4位数的验证码,并记录入COOKIES;
<%
Dim num1,rndnum
Randomize
Do While Len(rndnum)<4

查看更多...

分类:应用开发 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2969

ASP取某一时段热门文章代码

sub top99listr(num,tnum)
yy=year(now)
mm=month(now)
da=day(now)
if da>10 then

查看更多...

分类:应用开发 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 3061
<% response.charset="utf-8"%>
<% Session.CodePage="65001" %>
<% response.cachecontrol = "no-cache" %>

查看更多...

分类:应用开发 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2914

ASP取汉字的首字母

<%
'取出首字母
function getpychar(char)
dim tmp
tmp=65536+asc(char)

查看更多...

分类:应用开发 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 3362

ASP读取文件夹中文件

<%
dim fso,mydir,dname
Set Fso=server.createobject("Scripting.FileSystemObject")
set mydir=fso.getfolder(server.mappath("/AsaiWeb"))

查看更多...

分类:应用开发 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2334

网页字体特效代码大全

1、彩色字体色彩绚丽
</font><br>
<P align=center><STRONG><FONT size=6><FONT face=华文新魏><FONT color=#ff0000>彩
</FONT><FONT color=#ff8900>色</FONT><FONT color=#92c000>字</FONT><FONT color=#00c024>体</FONT><FONT color=#00c0da>色</FONT><FONT color=#0053ff>彩</FONT><FONT color=#4800ff> 绚</FONT><FONT color=#ff00ff>丽</FONT></FONT></FONT></STRONG></P>

查看更多...

分类:应用开发 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2539

FCKeditor 中文乱码成功解决方法

MY成功解决方法

把这个包含文件里面fckeditor.asp

<!--#include file="FCKeditor/fckeditor.asp" -->

查看更多...

分类:应用开发 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 4876

asp取时间

nowtime=now()
shijian=cstr(year(nowtime))+right("0"+cstr(month(nowtime)),2)+right("0"+cstr(day(nowtime)),2)+right("0"+cstr(hour(nowtime)),2)+right("0"+cstr(minute(nowtime)),2)

<%=year(now)%>年<%=month(now)%>月<%=day(now)%>日

查看更多...

分类:应用开发 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 3094

成功的ASP批量删除修改操作实例

<!-- #include file="conn.asp" --><!-- #include file="check.asp" --><!-- #include file="md5.asp" --><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>后台管理中心</title>
<LINK href="admin.css" type=text/css rel=stylesheet>

查看更多...

分类:应用开发 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 3052

ASP批量删除操作代码[全]

方法一:
<%
id=request.form("checkbox")
id=Split(id,",")
shu=0

查看更多...

分类:应用开发 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2264

asp返回上一页

response.write(" <script language='javascript'>history.go(-1); </script>")
返回,不刷新,保留之前表单数据;

Response.Write "<script>alert('操作有误,请核实!');window.location='"&request.servervariables("http_referer")&"';</script>"
返回,刷新,重新读取原始表单数据。

查看更多...

分类:应用开发 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2945