織夢(mèng)DEDECMS實(shí)現(xiàn)按鍵盤方向鍵實(shí)現(xiàn)上一篇下一篇翻
導(dǎo)讀:建站問題建站問題其實(shí)這個(gè)功能在很多小說站,圖片站經(jīng)常用到,大家可以留意一下,此教程源自于論壇熱心網(wǎng)友提供,下面來講講具體的修改操縱: 首先我們打開 include/arc.ar營(yíng)銷型網(wǎng)站建設(shè)個(gè)業(yè)網(wǎng)站建設(shè)公司。
其實(shí)這個(gè)功能在很多小說站,圖片站經(jīng)常用到,大家可以留意一下,此教程源自于論壇熱心網(wǎng)友提供,下面來講講具體的修改操縱: 首先我們打開 include/arc.archives.class.php 查找到以下代碼: $this-PreNext['pre'] = "上一篇:a href='$mlink'{$preRow['titl […]
其實(shí)這個(gè)功能在很多小說站,圖片站經(jīng)常用到,大家可以留意一下,此教程源自于論壇熱心網(wǎng)友提供,下面來講講具體的修改操縱:
首先我們打開 include/arc.archives.class.php 查找到以下代碼:
$this->PreNext['pre'] = "上一篇:<a href='$mlink'>{$preRow['title']}</a> ";
替換成以下代碼:
$this->PreNext['pre'] = "$mlink "; $this->PreNext['next'] = "下一篇:<a href='$mlink'>{$nextRow['title']}</a> ";
這樣php代碼就修改完了可以保存,接下來我們?cè)趦?nèi)容頁用js進(jìn)行調(diào)用.把以下代碼:
<script type="text/javascript" language="javascript"> <!-- document.onkeydown=nextpage; var prevpage='{dede:prenext get='pre'/}'; var nextpage='{dede:建設(shè)網(wǎng)站prenext get='next'/}'; var index_page = "index.html"; //var bookpage="index.html"; function nextpage(event) { event = event ? event : (window.event ? window.event : null); //if (event.keyCode==13) location=bookpage if (event.keyCode==13) location=index_page if (event.keyCode==3百度seo網(wǎng)站優(yōu)化7) { if (prevpage!='' && prevpage!='上一篇:沒有了 ') location=prevpage; else alert('這是第一頁'); } if (event.keyCode==39) { if (nextpage!='' && nextpage!='下一篇:沒有了 ') location=nextpage; else alert('已經(jīng)是最后一頁了'); } } //--> function getElement(aID) { return (document.getElementById) ? document.getElementById(aID): document.all[aID]; } function makeRequest(url){ http_request=false; if(window.XMLHttpReq個(gè)業(yè)網(wǎng)站建設(shè)公司uest){//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; } </script>
聲明: 本文由我的SEOUC技術(shù)文章主頁發(fā)布于:2023-05-26 ,文章織夢(mèng)DEDECMS實(shí)現(xiàn)按鍵盤方向鍵實(shí)現(xiàn)上一篇下一篇翻主要講述下一篇,上一篇,CMS網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請(qǐng)保留鏈接: http://www.bifwcx.com/article/web_10241.html
為你推薦與織夢(mèng)DEDECMS實(shí)現(xiàn)按鍵盤方向鍵實(shí)現(xiàn)上一篇下一篇翻相關(guān)的文章
-
通王TWCMS 2.0.3網(wǎng)站模板程序下載
(126)人喜歡 2024-01-15 -
Windows官方原版在哪里下載
(175)人喜歡 2024-01-15 -
WordPress網(wǎng)站模板發(fā)帖標(biāo)題顏色設(shè)置
(131)人喜歡 2024-01-07 -
修改discuz論壇帖子標(biāo)題80字符的長(zhǎng)度限制
(249)人喜歡 2024-01-07 -
wordpress程序調(diào)用不帶超鏈接的Tag標(biāo)簽
(234)人喜歡 2024-01-05 -
網(wǎng)站在不同時(shí)期需調(diào)整內(nèi)容更新的方向
(112)人喜歡 2023-08-12