作者chhs (星风写语)
看板Blog
标题[Blogger] Abin 最新回应修改
时间Thu Aug 13 21:24:36 2009
想问一下怎麽增加分隔线(已经解决,感谢a892245)
如白花花blog右边的Comments就增加了分隔线:
http://lingshu1005.blogspot.com/
--
Abin的程式码:
http://abintech.twidv.com/2008/01/recent-comments.html
顺便附上修改点
1.
var nCommentStartIndex = 1;
var nCommentShow =
8;
<====显示回应数目
2.
下面这一串是回应显示修改的地方
sHTML += '<li><span class="item-title">'+authorname+': <a href="'+link+'">
'+ title +'</a> -
'+timestamp+'</span></li>';
ps.
'+authorname+'=留言者
'+ title +' =留言摘要 <a href=""> </a>是连结
'+timestamp+' =留言时间
: - 是加入的文字
大约会显示成
留言者:123456789121221 - 2009-08-13
参考修改:可以移动、加入<br/>分行
'+timestamp+' - '+authorname+':<br/><a href="'+link+'">'+ title +'</a>
会显示成:
2009-08-13 - 留言者:
123456789121221
3.
加入分隔线:把
sHTML += '<li>的
<li>改成下面即可
<li style="border-bottom:1px solid #ddd;">
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 60.244.146.42
※ 编辑: chhs 来自: 60.244.146.42 (08/13 21:31)
※ 编辑: chhs 来自: 60.244.146.42 (08/13 21:35)
1F:推 sunnly:感谢分享:D 01/21 11:44