Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of Dream Weaving DEDECMS to realize the effect of turning pages up and down by Keyboard

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the method of weaving dream DEDECMS to achieve the effect of turning pages up and down by keyboard, which has a certain reference value and can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

Dream weaving DEDECMS how to use the keyboard to turn the page up and down?

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

Derived from the enthusiastic netizens of the forum, let's talk about the specific revision steps:

First, let's open include/arc.archives.class.php.

The following code was found:

$this- > PreNext ['pre'] = "previous post: {$preRow [' title']}"

Replace with the following code:

$this- > PreNext ['pre'] = "$mlink"; $this- > PreNext [' next'] = "next article: {$nextRow ['title']}"

In this way, the php code can be modified and saved, and then we call it with js in the content page. put the following code:

Function getElement (aID) {return (document.getElementById)? Document.getElementById (aID): document.all [aID];} function makeRequest (url) {http_request=false;if (window.XMLHttpRequest) {/ / Mozilla,Safari,...http_request=new XMLHttpRequest (); if (http_request.overrideMimeType) {http_request.overrideMimeType ('text/xml');}} else if (window.ActiveXObject) {/ / IEtry {http_request=new ActiveXObject ("Msxml2.XMLHTTP");} catch (e) {try {http_request=new ActiveXObject ("Microsoft.XMLHTTP") } catch (e) {}} if (! http_request) {alert ('Giving up: (Cannot create an XMLHTTP instance)'); return false;} return http_request;}

Add it to the previous position. in this way, all the changes have been made, and then we update the document to see the effect.

Thank you for reading this article carefully. I hope the editor will share the method and content of Weaving Dream DEDECMS to achieve the effect of turning pages up and down the keyboard. At the same time, I also hope that you will support more, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report