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

  • Home
  • SEARCH
  • 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 9270541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:23:45+00:00 2026-06-18T15:23:45+00:00

So basically I have an array that contains an image link and a description

  • 0

So basically I have an array that contains an image link and a description in an array which is then to be called to load the element in the slide show. However it is not setup as a loop thus making it inefficent when calling and have to manually enter each array index to get everything I need to get the image to be called to the slideshow. See below:

<head>
    <title></title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />

    <link rel="stylesheet" href="css/supersized.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="css/supersized.shutter.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="css/colorbox.css" type="text/css" media="screen" />

    <script type="text/javascript" src="scripts/jquery-1.6.4.min.js"></script>
    <script type="text/javascript" src="scripts/jquery.easing.min.js"></script>
    <script type="text/javascript" src="scripts/supersized.3.2.7.js"></script>
    <script type="text/javascript" src="scripts/supersized.shutter.js"></script>
    <script type="text/javascript" src="scripts/jquery.colorbox-min.js"></script>
    <script type="text/javascript" src="scripts/jquery.colorbox.parentsetup.js"></script>

    <script type="text/javascript">

        jQuery(function($){

            //image url, image title
            var data = [
                ['images/events/2012/bimmer_cruise/image_01.jpg', ''],
                ['images/events/2012/bimmer_cruise/image_02.jpg', ''],
                ['images/events/2012/bimmer_cruise/image_03.jpg', ''],
                ['images/events/2012/bimmer_cruise/image_04.jpg', '']

                ];

            $.supersized({

                // Functionality
                slide_interval  :   3000,       // Length between transitions
                transition      :   3,      // 0-None, 1-Fade, 2-Slide Top, 3-Slide Right, 4-                                           // Slide Bottom, 5-Slide Left, 6-Carousel Right, 7-                                         // Carousel Left
                transition_speed:   700,        // Speed of transition

                // Components                           
                slide_links     :   'blank',    // Individual links for each slide (Options:                                                //false, 'num', 'name', 'blank')

                slides          :   [           // Slideshow Images

                    {image : data[0][0], title : data[0][1], 
                     thumb : data[0][0], 
                     url   : 'colorbox_onclick("' + data[0][0] + '");'},

                    {image : data[1][0], title : data[1][1], 
                     thumb : data[1][0], 
                     url   : 'colorbox_onclick("' + data[1][0] + '");'},

                    {image : data[2][0], title : data[2][1], 
                     thumb : data[2][0], 
                     url   : 'colorbox_onclick("' + data[2][0] + '");'}, 

                    {image : data[3][0], title : data[3][1], 
                     thumb : data[3][0], 
                     url   : 'colorbox_onclick("' + data[3][0] + '");'}

    ]
            });
        });

I was thinking of doing something like the below instead but can’t figure it out and neither can my web guy. He said its impossible but im stubborn lol

                        for (var i = 0; i < data.length; i++) {

                            {image : data[i][0], title : data[i][1], 
                            thumb : data[i][0], 
                            url   : 'colorbox_onclick("' + data[i][0] + '");'},
                        }       

Any help/insight is appreciated 🙂

  • 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-06-18T15:23:46+00:00Added an answer on June 18, 2026 at 3:23 pm
    slides = [];
    for (var i = 0; i < data.length; i++) {
        slides.push({image : data[i][0], title : data[i][1], 
                     thumb : data[i][0], 
                     url   : 'colorbox_onclick("' + data[i][0] + '");'}
                    });
    }
    

    Then use slides in the options to $.supersized.

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

Sidebar

Related Questions

Im have a subclass of UIView, called PinView, which contains an image. Basically PinView
I have a pretty simple problem. Basically I have an array called $list that
Not sure why this is occurring: Basically, I have an array that contains the
I have an array that can contain any number of elements. Each element contains
I have one array that contains some settings that looks like basically like this:
I basically have an array in php which contains a string, I basically need
I have a Block class that basically contains an array of 36 vertices, a
I have a C struct that basically contains two 2D char arrays called List.
I am learning about arrays, and basically I have an array that collects a
I have a byte array of around 10,000 bytes which is basically a blob

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.