Results 1 to 8 of 8

Thread: Slide Show

  1. #1
    Join Date
    Apr 2012
    Location
    Central New Jersey
    Posts
    258
    Thanks
    92
    Thanked 3 Times in 3 Posts

    Default Slide Show

    I'm trying to implement a slide show using jquery. My model is Murach's HTML5 and CSS3, 4th Edition, page 654. (Yes I know DD offers a slide show script. I could not get IT to work either.)

    The following is in my head section:

    HTML Code:
    <script src='js/jquery-3.5.1.js'></script>
    <script src='slide_show.js'></script>
    The following is in the body:

    HTML Code:
    <br />
    <br />
    <p style="font-size:x-large; ">If Donald Trump makes an utterance in the middle of a deserted forest, and there is nobody around who hears him, is he still lying?</p>
    <br />
    <section>
    <h1>Trump Slide Show</h1>
    <h2 id="caption">The Might Is Right House</h2>
    <img id="slide" src="images/trump1.jpg" alt="">
    <div id="slides">
    <img src="images/trump1.jpg" alt="Trump and Pal Putin">
    <img src="images/trump2.jpg" alt="The liar tweets tonight">
    <img src="images/trump3.jpg" alt="Dump Trump">
    </div>
    </section>
    And here is my CSS code:

    Code:
    #slides img { display: none; }
    The page is at https://www.njgunlawyers.com/page.php?here=test. I have downloaded jquery-3.5.1.js into the js folder of my server. (It also does not work when I grab jquery-3.5.1.js from jquery.com and put

    HTML Code:
    <script src='//code.jquery.com/jquery-3.5.1.min.js'></script>
    into my head section.

    Please accept my apologies for linking to this heavily political message.

    A.
    Last edited by marain; 09-13-2020 at 12:43 PM. Reason: Mark "Resolved"

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,644
    Thanks
    1
    Thanked 252 Times in 247 Posts

    Default

    Hi there marain,


    your Slde Show script is not in the location that you have coded..

    https://www.njgunlawyers.com/slide_show.js

    ...so start you investigation to find it.

    coothead
    ~ the original bald headed old fart ~

  3. #3
    Join Date
    Apr 2012
    Location
    Central New Jersey
    Posts
    258
    Thanks
    92
    Thanked 3 Times in 3 Posts

    Default

    OK. I changed

    Code:
    script src='slide_show.js'></script>
    to

    Code:
    script src='js/slide_show.js'></script>
    It still does not work.

    I surmised that slide_show.js was perhaps contained in jquery-3.5.1.js. That surmise appears to be incorrect. I have no idea where to find it.

    You may be overestimating my abilities.

  4. #4
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,644
    Thanks
    1
    Thanked 252 Times in 247 Posts

    Default

    Hi there marain,


    there is no file with the name slide_show.js here...

    https://www.njgunlawyers.com/js/slide_show.js

    ...either.

    You need to check that the file name is correct.

    Perhaps you could give us some indication of
    where you got the script originally

    coothead
    ~ the original bald headed old fart ~

  5. #5
    Join Date
    Apr 2012
    Location
    Central New Jersey
    Posts
    258
    Thanks
    92
    Thanked 3 Times in 3 Posts

    Default

    I see your point. You're right--I'll have to look around for the script.

    The instruction comes from Murach's HTML5 and CSS3, 4th Edition, page 654.

  6. #6
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,644
    Thanks
    1
    Thanked 252 Times in 247 Posts

    Default


    Quote Originally Posted by marain View Post
    The instruction comes from Murach's HTML5 and CSS3,
    4th Edition, page 654.
    unfortunately, as you may have guessed, I do not have the
    benefit of that tome on my bookshelves to enlighten me.

    coothead
    ~ the original bald headed old fart ~

  7. The Following User Says Thank You to coothead For This Useful Post:

    marain (09-07-2020)

  8. #7
    Join Date
    Apr 2012
    Location
    Central New Jersey
    Posts
    258
    Thanks
    92
    Thanked 3 Times in 3 Posts

    Default

    Coothead,

    The book lists email addresses for its two authors. I'll ask them!

    A.

  9. #8
    Join Date
    Apr 2012
    Location
    Central New Jersey
    Posts
    258
    Thanks
    92
    Thanked 3 Times in 3 Posts

    Thumbs up

    The author replied. They omitted a step from the book! Their next edition will fix it. In the meanwhile, they gave me the missing information. The slide show now works!

    Thank you, Coothead!
    Last edited by marain; 09-13-2020 at 02:14 PM. Reason: Eliminate intention to post css problem, solved before posting it.

Similar Threads

  1. Ultimate Fade-In Slide Show - Audio file with each slide
    By gary.mcgill in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 02-26-2014, 01:22 PM
  2. Ultimate Fade-In Slide Show - Advance slide on mouse click
    By gary.mcgill in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 02-24-2014, 12:14 PM
  3. Start at middle of a slide show & Mouseover Slide Message
    By Chaim in forum Looking for such a script or service
    Replies: 0
    Last Post: 09-13-2009, 10:31 PM
  4. Ultimate Fade-in slide show- show text descriptions?
    By bobvaz in forum Dynamic Drive scripts help
    Replies: 9
    Last Post: 06-07-2007, 03:27 PM
  5. Image Slide Show - Book Flip Slide Show
    By Peppy in forum Dynamic Drive scripts help
    Replies: 13
    Last Post: 01-17-2007, 04:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •