EMlog文章增加上下篇按钮

时间:2020-08-01   阅读:378

教程截图

 EMlog文章增加上下篇按钮 文章

教程简介

为你的文章阅读页面增加上下篇按钮 这样以来也不用麻烦的来来去去点开你的文章 也方便浏览的时间 点上下文章浏览 按钮只会在电脑版显示 而手机版不是显示 影响手机浏览 代码已放在下面 放在你的文章阅读页面 也就是echo_log

按钮代码

<style>
#prevlog{width:40px;height:80px;background:url(https://img.itc.cn/photo/olZ77IqbZHL) no-repeat; position:fixed;left:50%;top:380px;margin-left:-530px;filter:alpha(Opacity=60);-moz-opacity:0.6;opacity:0.6;z-index:9999;}
#prevlog a,#nextlog a{width:40px;height:80px;display:block;}
#prevlog:hover,#nextlog:hover{filter:alpha(Opacity=100);-moz-opacity:1;opacity:1;}
#nextlog{width:40px;height:80px;background:url(https://img.itc.cn/photo/olZ77phsS28) no-repeat; position:fixed;left:50%;top:380px;margin-left:490px;filter:alpha(Opacity=60);-moz-opacity:0.6;opacity:0.6;z-index:9999;}
*html #prevlog, *html #nextlog{position: absolute;top:expression(eval(document.documentElement.scrollTop));}
</style>
<?php extract($neighborLog);if($prevLog){
echo '<div id="prevlog"><a href="'.Url::log($prevLog['gid']).'" title="'.$prevLog['title'].'"></a></div>';}
else{
echo '<div id="prevlog"><a href="#" title="没有上一篇了"></a></div>';};
if($nextLog){
echo '<div id="nextlog"><a href="'.Url::log($nextLog['gid']).'" title="'.$nextLog['title'].'"></a></div>';}
else{
echo '<div id="nextlog"><a href="#" title="没有下一篇了"></a></div>';};?>


上一篇:EMlog顶部增加彩色滚动条

下一篇:EMlog文章访问密码美化

网友评论