摘要: at 23:00 /every:M,T,W,Th,F,S,Su shutdown -s 阅读全文
posted @ 2011-04-26 09:18 moretop 阅读(133) 评论(0) 推荐(0) 编辑
摘要: function replacestr(str)dim reset re=new regexpre.ignorecase=truere.global=truere.pattern="\D"str=re.replace(str,"")replacestr=strset re=nothingend function 阅读全文
posted @ 2011-04-10 21:07 moretop 阅读(1259) 评论(0) 推荐(0) 编辑
摘要: <input onkeyup="value=value.replace(/[^\d]/g,'') "onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"> 阅读全文
posted @ 2011-04-10 18:32 moretop 阅读(281) 评论(0) 推荐(0) 编辑
摘要: <!--#include file="conn.asp" --><%set rs = server.createobject("adodb.recordset")sql = "select * from [表名]"rs.open sql,conn,1,1'-------只需要改动这3个地方----------- rs.pagesize = 10 '每页显示条数 const Pname="p" '当前页变量名 UrlParam="&keyword=关键词&a 阅读全文
posted @ 2011-04-09 20:31 moretop 阅读(1020) 评论(0) 推荐(1) 编辑
摘要: 加密解密字符串的asp函数,如用于ASP链接地址栏参数的加密,看代码就明白。比如:show.asp?id=DB26538FA54C70E1E31608CA769087A407E92CF1Base64解密函数 base64Decode(scrambled)Base64加密函数 base64Encode(plain)使用方法:加密ID:<ahref="show.asp?id=<%=base64Encode(rs("id"))%>"><%=rs("name")%></a>解密ID:id=bas 阅读全文
posted @ 2011-03-31 17:43 moretop 阅读(1392) 评论(0) 推荐(0) 编辑
摘要: 'subject 信息标题 'company 发布信息的公司名称 'content 发布信息的内容 'address 公司地址 'infomation 公司简介 'note 相关说明 以上值均由FORM提交,然后通过:subject=trim(Request.Form("subject"))等得到相应的值。 <% '这个函数很关键!--------------------------- Function sql(a,b,sqls) if b<>"" then '如果客户端没 阅读全文
posted @ 2011-03-30 13:09 moretop 阅读(1461) 评论(1) 推荐(0) 编辑
摘要: <!--#include file="include/conn.asp"--><script language = "javascript">var j;j=0;goaler = new Array();<%set rs=conn.execute("select * from SmallClass order by SmallClassID")if rs.eof then%>goaler[0] = new Array("无分类","","" 阅读全文
posted @ 2011-03-27 22:30 moretop 阅读(1286) 评论(0) 推荐(0) 编辑
摘要: '========月日不足两位补零函数==================function FillZero(str) ttt=str if len(str)=1 then ttt="0" & str end if FillZero=ttt end function function ConvertDate(tDate) ttt=tDate if isdate(tDate) then ttt=FillZero(month(tDate)) & "/" & FillZero(day(tDate)) end if Convert 阅读全文
posted @ 2011-03-24 18:04 moretop 阅读(646) 评论(0) 推荐(0) 编辑
摘要: 这个问题可以在“组策略”中解决。方法是:点“开始”-“运行:-输入gpedit.msc-点“确定”打开“组策略”编辑器,依次点“用户配置”-“管理模板”-“Windows组件”-“Windows资源管理器”-“通用打开文件对话框”,双击右侧的“位置栏中显示的项目”打开其“属性”对话框,在“设置”项下先选择“已启用”,点“应用”,然后在“显示的位置”下面的框内设置你要另存文件的路径(一共是五个项目选框),最后点“确定”即可。 阅读全文
posted @ 2011-03-23 16:18 moretop 阅读(298) 评论(0) 推荐(0) 编辑
摘要: CSS布局命名习惯说明:均为class,需要扩展,则在当前命名内以“_“(下划线)后缀自定名称。我习惯称列表页为list,新闻列表则为newslist,图片列表为piclist,内容页为view,/**/整体大框架:#wrapper大框架内:#inwrapper→←→←→←→←→←→←→←→←→←→←→顶部及banner:.top顶部及banner内:.intopLogo:.logoBanner:.banner导航:.menu导航内:.inmenu .Menuul .Menuul li .Menuul li a下拉菜单:.inmenu_xiala .Inmenu_xialaul .Inmenu 阅读全文
posted @ 2011-03-09 00:50 moretop 阅读(509) 评论(0) 推荐(0) 编辑