function setCookie(name,value) { var Days = 30; var exp = new Date(); //new Date(“December 31, 9998″); exp.setTime(exp.getTime() + Days*24*60*60*1000); document.cookie = name + “=”+ escape (value) + “;expires=” + exp.toGMTString(); } function getCookie(name) { var arr,reg=new RegExp(“(^| )”+name+”=([^;]*)(;|$)”); if(arr=document.cookie.match(reg)) return unescape(arr[2]); else return null; } function delCookie(name) { var exp = new Date(); exp.setTime(exp.getTime() – 1); var cval=getCookie(name); if(cval!=null) document.cookie= name + “=”+cval+”;expires=”+exp.toGMTString(); }
Posted in
keyboard's joy at May 28th, 2007.
No Comments.
function DateAdd(interval,number,date){
/*
*————— DateAdd(interval,number,date) —————–
* DateAdd(interval,number,date)
* 功能:实现VBScript的DateAdd功能.
* 参数:interval,字符串表达式,表示要添加的时间间隔.
* 参数:number,数值表达式,表示要添加的时间间隔的个数.
* 参数:date,时间对象.
* 返回:新的时间对象.
* var now = new Date();
* var newDate = DateAdd(“d”,5,now);
* author:wanghr100(灰豆宝宝.net)
* update:2004-5-28 11:46
* modify:Jean.want(ishere.cn)
* modifydate:2007-5-23 16:57
*————— DateAdd(interval,number,date) —————–
*/
number=parseInt(number);
switch(interval){
case “y” :
{date.setFullYear(date.getFullYear()+number); break; }
case “q” : { date.setMonth(date.getMonth()+number*3); break; }
case “m” : { date.setMonth(date.getMonth()+number); break; }
case “w” : { date.setDate(date.getDate()+number*7); break; }
case “d” : { date.setDate(date.getDate()+number); break; }
case “h” : { date.setHours(date.getHours()+number); break; }
case “m” : { date.setMinutes(date.getMinutes()+number); break; }
case “s” : { date.setSeconds(date.getSeconds()+number); break; }
default : { date.setDate(d.getDate()+number); break; }
}
return date.toLocaleDateString();
}
Posted in
keyboard's joy at May 23rd, 2007.
No Comments.
/wp-content/uploads/200705/22_084457_girlfriendthebestdamnthing.mp3
Avril Lavigne – The Best Damn Thing
专辑:The Best Damn Thing
LRC Produced By
Album:The Best Damn Thing
Avril Lavigne-The Best Damn Thing
Let me hear you say hey hey hey
Alright, now let me hear you
say hey hey ho
I hate it when a guy doesn’t get the door
Even though I told him yesterday
and the day before
I hate it when a guy
doesn’t get the tab
And I have to pull my money out
and that looks bad
Where are the hopes,
where are the dreams
My Cinderella story scene
When do you think
they’ll finally see
That you’re not not not
gonna get any better
You won’t won’t won’t
you won’t get rid of me never
Like it or not even though
she’s a lot like me
We’re not the same
And yeah yeah yeah
I’m a lot to handle
You don’t know trouble
but I’m a hell of a scandal
Me I’m a scene
I’m a drama queen
I’m the best damn thing
that your eyes have ever seen
Alright Alright yeah
I hate it when a guy doesn’t understand
Why a certain time of month
I don’t want to hold his hand
I hate it when they go out and we stay in
And they come home smelling like
their ex-girlfriend
But I found my hopes
I found my dreams
My Cinderella story scene
Now everybody’s gonna see
That you’re not not not
gonna get any better
You won’t won’t won’t
you won’t get rid of me never
Like it or not even though
she’s a lot like me
We’re not the same
And yeah yeah yeah
I’m a lot to handle
You don’t know trouble
but I’m a hell of a scandal
Me I’m a scene I’m a drama queen
I’m the best damn thing
that your eyes have ever seen
Give me an A,
always give me what I want
Give me a V,
be very very good to me
R, are you gonna treat me right
I, I can put up a fight
Give me an L,
let me hear you scream loud
One two three four
Where are the hopes,
where are the dreams
My Cinderella story scene
When do you think
they’ll finally see
That you’re not not not
gonna get any better
You won’t won’t won’t
you won’t get rid of me never
Like it or not even though
she’s a lot like me
We’re not the same
And yeah yeah yeah
I’m a lot to handle
You don’t know trouble
but I’m a hell of a scandal
Me I’m a scene I’m a drama queen
I’m the best damn thing
that your eyes have ever seen
Let me hear you say hey hey hey
Alright, now let me hear
you say hey hey ho
I’m the best damn thing
that your eyes have ever seen
Posted in
life's shadow at May 22nd, 2007.
No Comments.
在 JScript 表达式中,正则表达式后面的全局标志 (‘g’) 表示该表达式将用来在输入字符串中查找尽可能多的匹配。大小写敏感性由表达式结束处的大小写敏感性标记 (‘i’) 指定。
Posted in
javascript at May 21st, 2007.
No Comments.
中午喝了点酒,呵呵.
然后又翻看了以前的照片,去年大跃进的照片,一张张熟悉的笑脸,好亲切!可是现在都不在身边了,为了工作各奔东西,虽然在同一座城市,却难得见上一面.
在一起的感觉真好,想念我的朋友们!
于是,我决定这个周末邀他们出来玩,夏天到了,喝个散啤,吃个烧烤,应该也是一件快乐的事情!
Posted in
life's shadow at May 15th, 2007.
No Comments.
邮箱格式要求是:
- 必须包含一个并且只有一个符号@
- 第一个字符不能是’@'或者’.’
- 不允许出现’@.’或者’.@’或者’-@’或者’@-’
- 结尾不得是字符’@'或者’.’
- 字符@后面只能是’A-Za-z0-9′
<script> function checkMail(str){ var strReg=”"; var r; var strText=document.all(str).value; //strReg=/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/i; strReg=/^\w+((-\w+)|(\.\w+))*\@{1}\w+\.{1}\w{2,4}(\.{0,1}\w{2}){0,1}/ig; r=strText.search(strReg); if(r==-1) { alert(“邮箱格式错误!”); document.all(str).focus(); } } </script>
<input name=”email” type=”text” class=”input” id=”email” onChange=”checkMail(‘email’)”>
Posted in
keyboard's joy at May 9th, 2007.
No Comments.
在运行中输入gpedit.msc,打开“组策略编辑器”,选择“本地计算机策略→计算机配置→管理模板→系统”,接着双击右侧窗口中的“显示关闭事件跟踪程序”,最后在“设置”选项卡中“已禁用”即可。
![[lol]](http://www.ishere.cn/styles/smilesICON/smiles1/icon_lol.gif)
Posted in
windows at April 15th, 2007.
No Comments.
Windows Vista操作系统出来有一段时间了,一直想尝试一下,前天从同事那里整了个中文的,装上了,感觉就是不一样,那效果,没治了。
可是有些软件不能在这个平台上运行,但又是工作必需的,唉,无奈啊,只能割爱了。真是一口好锅,却不能煮肉!
只能又换回了Windows 2003 server,老伙伴了。
![[cool]](http://www.ishere.cn/styles/smilesICON/smiles1/icon_cool.gif)
Posted in
windows at April 14th, 2007.
No Comments.
呵呵,挺高兴的,从年前就等这个游戏,现在终于等到头了.
Posted in
life's shadow at April 6th, 2007.
No Comments.