Iskanje po podpori

Izogibajte se prevarantski tehnični podpori. Nikoli vam ne bomo naročili, da pokličete telefonsko številko ali nam pošljete osebne podatke. Sumljivo dejavnost prijavite z gumbom »Prijavi zlorabo«.

Več o tem

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

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.

Izbrana rešitev

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" />
Preberite ta odgovor v kontekstu 👍 0

Vsi odgovori (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

Izbrana rešitev

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" />

Spremenil 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.