我比较喜欢这个效果,当点击文章链接的时候文章标题会变成“ 页面载入中” 下面教大家怎么修改emlog实现这个效果。
注意:一下方法只适用于默认模版,其他模版需要修改下面红色部分
打开 “ /lib/js/common_tpl.js” 添加下列代码
//载入中
$(document).ready(function($) {
$('#content .content_h2 a,#newlog a,#randlog a,#newcomment .comment a'
).click(function(e) {
if (e.which == 2) {
return true
} else {
$(this).html('<b>页面载入中...</b>');
$('#clickload').show();
window.location = $(this).attr('href')
}
})
});
最后 在 header.php 加载下 jquery 如果加载过的 可以无视。
<script src="<?php echo BLOG_URL; ?>lib/js/jquery/jquery-1.2.6.js" type="text/javascript"></script>
注意: jquery必须比//载入中 的代码先要加载,不然会导致代码不能正常显示。

新年快乐 恭...
感谢您对EM的...
发表评论: