刚刚看到一个调用服务器端时间的倒计时代码,觉得不错,例子是调用奥运开幕时间。
Read the rest of this entry »

相关文章:

本代码为网站通用代码,可广泛应用于所有网站以及博客站点。

Read the rest of this entry »

相关文章:

转自:http://l4ever.cn/archives/850

将以下内容保存为Copy.js,上传网站目录,访问路径为http://CODE URL/Copy.js

document.body.oncopy=function(){
 event.returnValue=false;
 var t=document.selection.createRange().text;
thisPLoc = parent.document.location;
 var s="本文来源于:《梓志通鉴》,原文地址:" + thisPLoc + " ";
 clipboardData.setData(‘Text’,”+t+”+s+”);
}

然后再模板内调用:

<script type="text/javascript" src="http://CODE URL/Copy.js"></script>

本代码为通用代码,可用在任何地方。测试了下FireFox下貌似不可以。

相关文章:

© 2008 JorWang | iKon Wordpress Theme |