Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

JavaScript Slide Show Not working. (no errors in script).

New Here ,
Dec 12, 2017 Dec 12, 2017

Hello,

I am trying to create a functioning slideshow for my webpage. I have written the HTML, CSS and JavaScript, which is not showing any errors, so I can't work out the problem

If anyone could shed dome light I would be grateful!

Screen Shot 2017-12-12 at 10.10.30.png

Screen Shot 2017-12-12 at 10.11.16.png

Screen Shot 2017-12-12 at 10.11.40.png

946
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Dec 12, 2017 Dec 12, 2017

Try surrounding your whole block of jQuery code in a $(document).ready function::::

$(document).ready(function() {

JQUERY GOES HERE

});

Failing that where did you get the code from?

Translate
Community Expert ,
Dec 12, 2017 Dec 12, 2017

Not seeing the whole of your document, I can only summise that you have not included the jQuery library to support the JavaScript that you have shown.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 12, 2017 Dec 12, 2017

Hello,

Thank you for replying,

here is a screenshot of what I think you mean,

Screen Shot 2017-12-12 at 13.40.00.png

I originally had the google one alone but the other was recommended on another forum, not sure if that is the problem?

Best,

Alice

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 12, 2017 Dec 12, 2017

Try surrounding your whole block of jQuery code in a $(document).ready function::::

$(document).ready(function() {

JQUERY GOES HERE

});

Failing that where did you get the code from?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 12, 2017 Dec 12, 2017
LATEST

This worked! I had this written already for another function but had closed it off with });

Thank you very much!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines