June 25th, 2008倒计时代码(服务器时间)
刚刚看到一个调用服务器端时间的倒计时代码,觉得不错,例子是调用奥运开幕时间。
Read the rest of this entry »
Tags: JavaScript No Comments »
刚刚看到一个调用服务器端时间的倒计时代码,觉得不错,例子是调用奥运开幕时间。
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下貌似不可以。
相关文章: