好多人都在博客上弄了个读者墙,我之前也搞过,但是换了新主题之后就没再添加了。所以抽了个时间,在links页面加了读者墙,展示的是最近三个月内的评论数量在前72名的访客头像。围观我的读者墙请移步此处。
读者墙部分加了个JS效果,鼠标移上去会在旁边打开一个侧滑面板,显示访客的姓名和评论数量等信息。我将这个效果封装了一下,与大家分享。
1: /*!
2: * author: liuqiqi
3: * date: 2010/09/01
4: */
5: var Class = {
6: create: function() {
7: return function() {
8: this.init.apply(this, arguments);
9: }
10: }
11: }
12: var PicWall=Class.create();
13: PicWall.prototype={
14:
15: init:function(wrapId,infoId,picClass,textClass){
16: this.wrap=this.$(wrapId);
17: this.info=this.$(infoId);
18: this.picClass=picClass;
19: ...
Read more »