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 8395747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:22:46+00:00 2026-06-09T20:22:46+00:00

so i found this amazing jQuery slideshow called Skitter. it’s awesome! so i implemented

  • 0

so i found this amazing jQuery slideshow called Skitter. it’s awesome! so i implemented it in my latest project.
i got it @ http://thiagosf.net/projects/jquery/skitter/#documentation

Is it possible to (and if so, how do I) have the images be randomly displayed BUT always start with a particular one?
For example, say I want the first image that it shows when a user loads the page is a particular one with a welcome message. But then for every image “after” that one, it’s randomized.

I have the “show_randomly: true,” part in the head and my current slide is randomizing successfully. I just hope to have a ‘start’ image.

So from its homepage, I did the “Customize Features” and copy/pasted the code it gave me into the head of my page…

<!-- CSS -->
<link type="text/css" href="scripts/SkitterSlideshow/css/skitter.styles.css"
      media="all" rel="stylesheet" />

<!-- JS -->
<script type="text/javascript" 
      src="scripts/SkitterSlideshow/js/jquery-1.6.3.min.js"></script>
<script type="text/javascript" 
      src="scripts/SkitterSlideshow/js/jquery.easing.1.3.js"></script>
<script type="text/javascript" 
      src="scripts/SkitterSlideshow/js/jquery.animate-colors-min.js"></script>
<script type="text/javascript" 
      src="scripts/SkitterSlideshow/js/jquery.skitter.min.js"></script>

<!-- Init Plugin -->
<script>
        $(document).ready(function() {
            $(".box_skitter_large").skitter({
                animation: "randomSmart", 
                dots: true, 
                preview: true, 
                controls_position: "center", 
                numbers_align: "right", 
                hideTools: true, 
                show_randomly: true, 
                controls: true, 
                interval: 5000,
                velocity: 0.5,
            });
        });
</script>

So like i said, i have a successful slideshow running and it IS randomizing the images. Just need a way to have it always start with one particular image from the list.
THANKS!!!

  • 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-09T20:22:47+00:00Added an answer on June 9, 2026 at 8:22 pm

    To the best of my knowledge, that isn’t a functionality of the Skitter script. However, you can easily add it. Start by opening up the jquery.skitter.js file (it will be hard to make changes to the .min.js file you’re using now, and you can always minimize it later on).

    Find the following line:

    if (this.settings.show_randomly) this.settings.images_links.sort(function(a,b) {
        return Math.random() - 0.5;
    });
    

    Immediately after that, add this:

    /* START INITIAL FIXED IMAGE MOD */
    if (this.settings.show_randomly) { /* Only use a fixed initial image if show_randomly is enabled */
    
        /* The following function is used to move an item in an array from fromIndex to toIndex */
        Array.prototype.move = function(fromIndex, toIndex) {
            this.splice(toIndex, 0, this.splice(fromIndex, 1)[0]);
        };
    
        initialIndex = 0;
    
        /* The following function finds the desired initial image and stores it's location */
        $.each(this.settings.images_links, function(index, item) {
            if (item[1].slice(0,9) == "[initial]") initialIndex = index;
        });
    
        this.settings.images_links[initialIndex][1].replace("[initial]", ""); /* Removes the [initial] tag so the link works properly */
        this.settings.images_links.move(initialIndex, 0); /* Move it to the front of the array so it's displayed first */
    }
    /* END INITIAL FIXED IMAGE MOD */
    

    Then, to declare an initial (start) image, simply add [initial] to the beginning of the href attribute of the desired image. The following example will always start off with images/003.jpg, assuming you have show_randomly enabled in the script options.

    <div class="box_skitter box_skitter_large">
        <ul>
            <li><a href="#cube"><img src="images/001.jpg" class="cube" /></a><div class="label_text"><p>cube</p></div></li>
            <li><a href="#cubeRandom"><img src="images/002.jpg" class="cubeRandom" /></a><div class="label_text"><p>cubeRandom</p></div></li>
            <li><a href="[initial]#block"><img src="images/003.jpg" class="block" /></a><div class="label_text"><p>block</p></div></li>
            <li><a href="#cubeStop"><img src="images/004.jpg" class="cubeStop" /></a><div class="label_text"><p>cubeStop</p></div></li>
            <li><a href="#cubeHide"><img src="images/005.jpg" class="cubeHide" /></a><div class="label_text"><p>cubeHide</p></div></li>
            <li><a href="#cubeSize"><img src="images/006.jpg" class="cubeSize" /></a><div class="label_text"><p>cubeSize</p></div></li>
        </ul>
    </div>
    

    If you want to minimize this again, there are several Internet services, such as http://www.minifyjavascript.com, http://refresh-sf.com/yui, or http://jscompress.com.

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

Sidebar

Related Questions

I found this amazing resource http://gtmetrix.com/ that you supply a URL to a website
I found an amazing typewriting effect at this website: http://www.9elements.com The header shows a
I found few days ago, amazing project, called https://github.com/commonsguy/cwac-merge . I want to make
I have found this amazing control that does exactly what I need, only problem,
Found this official ACS demo http://www.fabrikamshipping.com/ while researching on ACS. In the app itself,
I have implemented the amazing WordSmith jquery plug-in and it works, but for some
I'm trying to integrate this amazing calendar in my project. I get trouble with
I found this amazing code to make a dropdownlist with check boxes: Click here
Recently i found the raphael's library which is amazing. For example this: Raphael Chart
Found this here http://sla.ckers.org/forum/read.php?2,15812,page=2 If you copy the title of the question and run

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.