代码超简单:
$(function(){
$(".box h2").css('cursor', 'pointer');
$(".box h2").click(
function(e){
$(this).next().toggle();
}
).click();
$(".post-title").css('cursor', 'pointer');
$(".post-title").click(
function(e){
$(this).next().next().toggle();
}
).click();
$('#readerpublishermodule0 h3').css('cursor', 'pointer');
$('#readerpublishermodule0 h3').click(
function(e){
$(this).next().toggle();
}
).click();
})
3 评论:
哈,试了试,果然不错
不过一点标题就进单个post页了
并且单个post页load完,也就显示一个标题
如果网速快的话,尤其在美国访问的话,估计大部分时间就只看到标题了,看不到内容
如果可以
1 在首页加个”+“链接来做js效果,标题还是一般链接
2 点进单个post页去掉js效果
这样就完美了,不知白菜兄怎么看?
谢谢你的建议,又调整了一下。
还没找到合适的图标,暂时用 + - 字符顶替着。
ha,昨看到了效果了,挺好的
发表评论