静态网站的自动下一个和上一个导航?

发布于 2024-10-08 10:00:10 字数 147 浏览 0 评论 0原文

我有一个静态网站,其中包含一系列页面,我想向其中添加“下一页”和“上一页”链接。将每个页面的按钮链接到下一页和上一页并不是一个大麻烦,但更新和重新排序可能会很痛苦。

有人知道使用 jquery 或 mootools 的任何方便的解决方案吗?

谢谢。

I have a static site with a series of pages that I'd like to add "next page" and "previous Page" links to. Linking the buttons to the next and previous pages from each page is not a big hassle but can be a pain to update and re order.

Anyone know of any handy solutions using jquery or mootools?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

狼性发作 2024-10-15 10:00:10

您可以创建一个包含页面所有 URL 的数组,然后检查数组中当前页面的 URL,并基于此使用 jquery 创建上一个和下一个按钮。

You could create an array containing all the URLs of the pages, then check the URL of the current page in the array and create the prev and next buttons with jquery based on that.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文