sql语句中使用case选择
作者:Rady 日期:2009-06-25
全背景图插件(Full Size Background Image jQuery Plugin)
作者:Rady 日期:2010-02-25
功能:背景图片始终与窗口大小一致。
主要代码下
(function($) {
$.fn.fullBg = function(){
var bgImg = $(this); function resizeImg() {
var imgwidth = bgImg.width();
var imgheight = bgImg.height(); var winwidth = $(window).width();
var winheight = $(window).height(); var widthratio = winwidth / imgwidth;
var heightratio = winheight / imgheight; var widthdiff = heightratio * imgwidth;
var heightdiff = widthratio * imgheight; if(heightdiff>winheight) {
bgImg.css({
width: winwidth+'px',
height: heightdiff+'px'
});
} else {
bgImg.css({
width: widthdiff+'px',
height: winheight+'px'
});
}
}
resizeImg();
$(window).resize(function() {
resizeImg();//当窗口大小变化时改变图片的大小
});
};
})(jQuery)
主要结构:
<img src="your-background-image.jpg" alt="" id="background" /> <div id="maincontent"> <!-- Your site content goes here --> </div>
Tags: javascript jQuery 插件
Google Document文件分享支持所有类型
作者:Rady 日期:2010-01-16
Google Document文件分享目前已经支持上传所有的类型了,你可以上传最大250M任意格式文件,每个Google帐户最初详述享有1GB的免费空间。扩大你的存储空间的价格是0.25$/1GB。Google又为我们提供一了一件利器,相信此举会打破免费网盘格局。
Google Document 地址 http://docs.google.com/
jQuery插件 jQuery.slide.4.0
作者:Rady 日期:2009-12-31
更新jQuery.slide.4.0插件,新增自动循环滚动功能
效果如下图所示
/*
author:Rady
website: http://www.radys.cn
date: 2009-12-31 11:00
plugins name: rady.ui.slide
version v4.0
*/
if(typeof rady === 'undefined')
var rady = window.rady = {};
if(typeof rady.ui === 'undefined')
rady.ui = {};
(function($) {
rady.ui.slide = function(options) {
this.opts = $.extend({}, rady.ui.slide.defaults, options);
继续写我的2009年
作者:Rady 日期:2009-12-27
接上篇继续2009年记忆。
2009这一年,
1. 我结婚了!
我终于与我相恋六年的女友结婚了,我非常感谢老天能让我遇到我的妻子,她是这样好的一个人,在我现在基本上一贫如洗的境况下嫁给了我,我感谢我的妻子。虽然我不是基督徒,但是我相信我们心中都有自己的“上帝”,所以我以上帝的名义,郑重发誓:不论祸福,贵贱,疾病还是健康,都爱我的妻子,珍视她,直至死亡。
又一年要过去了
作者:Rady 日期:2009-12-24
下面是我的成绩单。
2009年博客文章成绩单
01月 2篇
02月 4篇
03月 9篇
04月 13篇
05月 28篇
06月 10篇
07月 8篇
08月 6篇
10月 1篇
11月 8篇
12月 7篇
共 96篇365天,差不多四天才写一篇文章,看来我已经懒惰到极点了。可喜的是2009年5月有28篇文章,而10月一个月只有一篇文章。 年初和年末写的比较少,在中间几个月份产量还高一点,不过好景不长,看来要再坚持克服自己惰性争取在2010年有大的突破。Gooooooooooooooo
Tags: 年终总结
jQuery exclude this $().not(this)
作者:Rady 日期:2009-12-07
DEMO1$(".content a").click(function() {
$(".content a").not(this).hide("slow");
});DEMO2var obj = $(“#column .box”);$(".box").not(obj).show();
SQL,Group By And Update Left Join(Inner Join)
作者:Rady 日期:2009-12-02
备份两个SQL语句,第一条是通过Rank partition 命令实现Group By Top第二条记录,第二条Update Set Inner Join
1.WITH temp AS (
Select HotelID,HotelImageID,RANK() OVER (partition by HotelID orDER BY HotelImageID asc) AS rt
From HotelImage Group By HotelID,HotelImageID
)








