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

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

New Here ,
Dec 12, 2017 Dec 12, 2017

Copy link to clipboard

Copied

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

Views

836

Translate

Translate

Report

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?

Votes

Translate

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

Copy link to clipboard

Copied

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, the only real Dreamweaver alternative.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

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

Thank you very much!

Votes

Translate

Translate

Report

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