搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

A javascript slideshow works perfectly in FF 10.0 on my PC but fails when transferred to webspace, giving an "is not a function" error. The file is http://www.bcbm.co.uk/shares/Apperley/index2.htm. Any help welcome. It works on line in Safari

  • 3 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 andrewcooley

more options

It's a straightforward HTML page generated with Frontpage 4.0 and uses javascript from Javascript Kit (http://www.javascriptkit.com/script/script2/thumbslider.shtml) which works fine in the demo. My version also works fine when the file is opened by FF 10.0 from my PC, but not when loaded from webspace. The .js, .css and image files are all on line in both cases.

It's a straightforward HTML page generated with Frontpage 4.0 and uses javascript from Javascript Kit (http://www.javascriptkit.com/script/script2/thumbslider.shtml) which works fine in the demo. My version also works fine when the file is opened by FF 10.0 from my PC, but not when loaded from webspace. The .js, .css and image files are all on line in both cases.

被采纳的解决方案

You missed out a forward slash in some links (http:/ instead of http://):

<script type="text/javascript" src="http:/www.bcbm.co.uk/js/thumbslide.js">
<link rel="stylesheet" type="text/css" href="http:/www.bcbm.co.uk/js/thumbslide.css" />
定位到答案原位置 👍 0

所有回复 (3)

more options

I got a file that worked by copying from the demo page and the only difference in the final files was that the non-working one had single slashes in the url references to the .js and .css files.

Why that was ignored when running from the file on my pc, I don't know. The "is not a function" error message appeared to be unrelated to this, but would result from not finding the .js file

more options

选择的解决方案

You missed out a forward slash in some links (http:/ instead of http://):

<script type="text/javascript" src="http:/www.bcbm.co.uk/js/thumbslide.js">
<link rel="stylesheet" type="text/css" href="http:/www.bcbm.co.uk/js/thumbslide.css" />

由cor-el于修改

more options

Thanks. I still don't know how it could work OK on my pc when using the duff url - but there is no longer a problem.