Home > CMS Tutorial > DEDECMS > body text

How to use the keyboard to turn pages up and down in DEDECMS

藏色散人
Release: 2020-01-09 09:21:04
Original
1922 people have browsed it

How to use the keyboard to turn pages up and down in DEDECMS

How does DEDECMS use the keyboard to turn pages up and down?

Dream Weaver DEDECMS realizes the effect of turning pages up and down using the keyboard

Recommended learning: Dream Weaver cms

In fact, this function is used in many novel sites , picture sites are often used, you can pay attention to it. This tutorial is provided by enthusiastic netizens on the forum. Here are the specific modification steps:

First we open include/arc.archives.class.php

Find the following code:

$this->PreNext['pre'] = "上一篇:{$preRow['title']} ";
Copy after login

Replace it with the following code:

$this->PreNext['pre'] = "$mlink ";
$this->PreNext['next'] = "下一篇:{$nextRow['title']} ";
Copy after login

In this way, the php code has been modified and can be saved. Next, we use js to call it on the content page. Add the following code:

Copy after login

to the position before . In this way, all modifications are completed, and then we will update the document to see the effect.

The above is the detailed content of How to use the keyboard to turn pages up and down in DEDECMS. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!