In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article is to share with you about dedecms's method of pressing the keyboard arrow keys to achieve page turning. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
Dedecms press the keyboard key how to achieve (the previous article and the next page turning) function?
Press the keyboard key to realize the page turning function of the previous article and the next article. There must be a lot of webmaster friends who want to achieve this function. In fact, this function is often used in many novel stations and picture stations. Let's talk about the specific modification and manipulation. You can't miss it if you are interested. I hope it can help you.
In fact, this function is often used in many novel stations and picture stations. You can note that this tutorial is provided by enthusiastic netizens in the forum. Let's talk about specific modification and manipulation:
First, let's open include/arc.archives.class.php and find the following code:
The code is as follows:
$this- > PreNext ['pre'] = "previous post: {$preRow [' title']}"
Replace with the following code:
The code is as follows:
$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:
The code is as follows:
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) {/ / IE try {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! About dedecms press the keyboard key to achieve page turning method to share here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.