gpt4 book ai didi

javascript - 滚动功能在本地禁用,但仍可在现场使用

转载 作者:行者123 更新时间:2023-12-03 10:36:18 26 4
gpt4 key购买 nike

大家好,我必须对我的前任之一多年前创建的网站进行更新。幸运的是,平滑滚动无法加载其资源,实时网站仍在正常运行http://www.asla.org/greenroof/index.html

我还想补充一点,大约一个月前,当我上次在本地检查时,本地文件没有抛出任何错误。

我需要上传 index.html 文件以及新图像才能进行更新。我认为这不会改变或禁用实时网站的功能。

目前只是尝试让滚动在本地工作。这个光标 .cur 元素我在任何地方都找不到,所以我假设它是 jquery 库的一部分。

有什么想法吗?再次感谢。

这是我遇到的错误,我不知道如何解决这个问题。如有帮助,将不胜感激。

控制台

enter image description here

index.html

enter image description here

jqueryLoader.js 第 23 行和 109 行

enter image description here

enter image description here

jquery.tools.min.js 第 174 行

e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window);

这也是 CSS

enter image description here

服务器甚至没有控制台指定路径中的/cursor 目录

No Images Folder

No Cursors Folder

2015 年 3 月 25 日更新在本地 Web 服务器 MAMP 上设置时,本地站点滚动工作正常,不会返回任何错误。很奇怪,通过 file://访问该网站如何随机停止工作。

Arrow images appear and horizontal scroll is restored

最佳答案

如果您只想进行本地测试,您可以通过 css 并重命名

background-image: url (../images/cursor/rightArrowoutline.png);
background-image: url (../images/cursor/curspr_arrow_right.cur)
background-image: url (../images/cursor/curspr_arrow_left.cur)

background-image: url ('http://www.example.com/greenroof/images/cursor/curspr_arrow_right.cur')
background-image: url ('http://www.example.com/greenroof/images/cursor/curspr_arrow_left.cur')

example.com 将是实时域的名称。

如果您在完成后想要一个生产就绪的文件,我会设置一个本地网络服务器。检查所有源文件并制作该网站的本地版本。

MAMP 的设置速度相当快。

http://en.wikipedia.org/wiki/MAMP

更新:3/10看起来光标位于服务器文件系统上的两个位置。您有两个包含文件的目录吗?

Looks like the cursors are in two places

关于javascript - 滚动功能在本地禁用,但仍可在现场使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28970266/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com