Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3441138
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:30:58+00:00 2026-05-18T08:30:58+00:00

I am trying to get a slideshow to run on my page which draws

  • 0

I am trying to get a slideshow to run on my page which draws from several groups (categories) of images which are included in the slideshow if a particular checkbox (one for each category) on the page is checked. I successfully coded this with two categories, but am trying to make the code more easily customizable. I had the brilliant idea to use custom objects instead of arrays. I figure this approach would probably also get me closer to my final goal of using an xml document in the process.

I am fairly new to object oriented programming, especially with javascript. I have successfully created a declaration of objects for use in a slideshow page with the following code:

function picsobj(description,length,indivpicarray){
  this.description=description;
  this.length=length;
  this.indivpicarray=indivpicarray;
}

and elsewhere the following code to make an array of picsobj objects

for(i=0;i<2;i++){ //change i< integer to number of picture arrays
  picarrays[i]=new picsobj();}

the plan is to use the description property for captions or to describe elements on the page, to use the length property to help determine how many pictures to cycle through, and to use (here’s where my question comes…) the object property called indivpicarray to store an ARRAY of image names (the length of the array would change from picsobj to picsobj). I do not know if this is possible, and if it is I need help with the syntax please. Thank you for reading my question. again, sorry if there are any misused words i’m a bit of a n00b and have pretty much learned through “view source, copy, paste, alter”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:30:59+00:00Added an answer on May 18, 2026 at 8:30 am

    and to use the object property called
    indivpicarray to store an ARRAY of
    image names.

    This is perfectly fine. The technique of objects having properties that are arrays is quite common. Arrays are treated just like any other variable. Just add this to your constructor:

    function picsobj(description,length,indivpicarray){
      this.description=description;
      this.length=length;
      this.indivpicarray=indivpicarray;
    }
    
    imageNameArray = [ "image1.png", "image2.gif", "image3.jpg" ];
    var myPicsObj = new picsobj( "this is the description", 3, imageNameArray );
    

    see here if you’re not sure what a constructor is

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get familar with the jQuery Tools - Slideshow from Flowplayer
So I am trying to populate the slideshow div with images from a external
I'm trying to get jQuery Cycle to only run when the slideshow is being
Trying to get parameters from a PUT request using HttpServlet#doPut: public void doPut(HttpServletRequest request,
I am trying get content from the link https://....com:8455 where Server's certificate is not
i'm creating a simple slideshow. 4 images coming from db by php stored in
I'm new to JavaScript and I'm trying to get a slideshow working in my
I am using a nice jquery slideshow plugin I found and trying to get
i'm in a slideshow extender web service method and trying to get a stringfrom
I'm trying to get request a json object from the server each 10 seconds

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.