Results 1 to 4 of 4

Thread: image assistance in javascript

  1. #1
    Join Date
    Apr 2015
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default image assistance in javascript

    Good Day,
    New to Javascript, pulling my hair out!!! this an assignment I need to complete. I have tried using an if and else, then tried using the function code, need to use arrays???. What is the actual code I need to perform this. I can do the html and css part no problem. Any assistance you can provide will be greatly appreciated. Thank you so much! Here is the instructions...

    1. Make a page with an image gallery containing at least 6 images and a short sentence or paragraph for each one.

    2. When the page first loads, there should be only ONE image showing along with its description in a separate paragraph.
    3. There should be either buttons or links (such as >>) to advance forward AND backward through the images. When the user is viewing the last image and clicks to advance, it will show the original image again. The same thing should happen if the user is at the first image and clicks the backwards button- it should display the last image. Every image should also be accompanied with it's corresponding description.
    4. There should be a headline above the image gallery describing what the gallery of images is about (random, my summer vacation, where I want to live, my pet goat etc)
    5. You should use arrays for the images and descriptions.
    6. You should use either DOM and/or innerHTML to change the image displays

  2. #2
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,891
    Thanks
    2
    Thanked 441 Times in 435 Posts

    Default

    as you say you will need to use an array

    but it is difficult to assist without doing it all

    you will need to attempt the requirements and post your code and we can assist with the specifics
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

  3. #3
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    Quote Originally Posted by Paula57 View Post
    Good Day,
    ... this an assignment I need to complete ...
    Ah, homework. Sorry, you'll need to show that you have at least tried to solve the problem first.

  4. #4
    Join Date
    Apr 2015
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I will try with arrays, have tried with functions and variables. God Bless you! and thank you!

Similar Threads

  1. Javascript/DHTML Tooltip Assistance Please
    By Del087 in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 04-29-2014, 09:25 AM
  2. Some assistance
    By dinx in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 12-05-2013, 01:20 PM
  3. Up-Down Image Slideshow Script--Need Assistance Editing
    By StaceyB in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 04-21-2006, 04:49 AM
  4. Need Assistance Please
    By ecom2b in forum JavaScript
    Replies: 0
    Last Post: 11-28-2005, 04:06 PM
  5. Need assistance Please
    By ecom2b in forum The lounge
    Replies: 0
    Last Post: 01-20-2005, 12:33 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
  •