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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:02:13+00:00 2026-06-09T21:02:13+00:00

I am using the Featured Box Slider to create a couple galleries on my

  • 0

I am using the Featured Box Slider to create a couple galleries on my site but have run into an issue when running two galleries at the same time on the same page.

I have navigation setup on the gallery a simple Previous and Next button. But when I click next or previous it will operate only one gallery instead of operating for their respective gallery.

How do I fix this issue?

Here is the code:

JS

//Gallery 1 

jQuery(document).ready(function($j) {
gallery = $j("#transformed-aviation-gallery").featuredbox({
        width: 940,
        height: 400,
        slidesAnimation: "slide-left",
        startPositionOffsetX: 0,
        startPositionOffsetY: 0,
        slidesSpeed: "slow",
        hParts: 1,
        vParts: 6,
        blocksWaitInterval: 50,
        descriptionAnimation: "fade",
        descriptionSpeed: "slow",
        rotateInterval: 0,
        slidesReverseAnimation: false,
        slidesPattern: "random",
        previous: ".next",
        useFadeIn: true,
        pauseOnMouseHover: true
        });            
});

//Gallery 2
jQuery(document).ready(function($j) {
gallery = $j("#changed-aviation-gallery").featuredbox({
        width: 940,
        height: 400,
        slidesAnimation: "slide-left",
        startPositionOffsetX: 0,
        startPositionOffsetY: 0,
        slidesSpeed: "slow",
        hParts: 1,
        vParts: 6,
        blocksWaitInterval: 50,
        descriptionAnimation: "fade",
        descriptionSpeed: "slow",
        rotateInterval: 0,
        slidesReverseAnimation: false,
        slidesPattern: "random",
        previous: ".next",
        useFadeIn: true,
        pauseOnMouseHover: true
        });            
});

HTML

<div id="transformed-aviation">
  <div class="box-wrap">
   <div class="border">
    <div class="featuredbox-wrapper" id="transformed-aviation-gallery">
      <!-- Gallery Images --> 
</div>
</div>
<div  class="small img-center"> 
<a href="javascript: gallery.prev();">Previous</a>
 | 
<a href="#" id="back1" class="back">Back</a>
 | 
<a href="javascript: gallery.next();">Next</a>
</div>
</div>

<div id="changed-aviation">
  <div class="box-wrap">
   <div class="border">
    <div class="featuredbox-wrapper" id="changed-aviation-galleryy">
      <!-- Gallery Images --> 
</div>
</div>
<div  class="small img-center"> 
<a href="javascript: gallery.prev();">Previous</a>
 | 
<a href="#" id="back2" class="back">Back</a>
 | 
<a href="javascript: gallery.next();">Next</a>
</div>
</div>

I assume I need to identify which gallery the previous or next is supposed to be controlling but how do I do that?

Note: The last or 2nd gallery is the one that can move forward or backwards. The first gallery doesn’t do anything when clicking next or previous.

Please provide examples.

Thanks!

UPDATE

I attempted to add an iframe to the site to see if I could get the galleries to play nice and that completely broke the gallery.

  • 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-09T21:02:15+00:00Added an answer on June 9, 2026 at 9:02 pm

    I had to make a change to the gallery code:

    //Gallery 1 
    
    jQuery(document).ready(function($j) {
    gallery1 = $j("#transformed-aviation-gallery").featuredbox({ //I added a 1 to gallery
            //gallery code
            });            
    });
    
    //Gallery 2
    jQuery(document).ready(function($j) {
    gallery2 = $j("#changed-aviation-gallery").featuredbox({ //I added a 2 to gallery
            //gallery code
            });            
    });
    

    Then I had to change the links to associate with the correct gallery:

    <!-- For Gallery 1 --> 
    <div class="small img-center">
    <a href="javascript: gallery1.prev();">Previous</a>
    | 
    <a href="javascript: gallery1.next();">Next</a>
    
    
    <!-- For Gallery 2 --> 
    <div class="small img-center">
    <a href="javascript: gallery2.prev();">Previous</a>
    | 
    <a href="javascript: gallery2.next();">Next</a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I adapted the jQuery slider code from http://webdeveloperplus.com/jquery/featured-content-slider-using-jquery-ui/ into my website which is based
I am using html5 and css3 in my site project. My css .featured-posts{ display:
I'm working on pizzli.com/darrenwp. I've created a featured content slider using Jquery/Jquery UI and
I have an application that is multilingual. I'm using the out-of-the-box .Net features for
I've been using MySQL happily for many years but have now come across an
I have been using Apache POI for quite sometime and it works great but
I am using this code -->requestWindowFeature(Window.FEATURE_NO_TITLE) in my dialog box but when I click
As I'm developing my webpage, I found an issue using the box-shadow feature. I
I'm using box shadow CSS feature on images in my gallery, but somehow the
I am using this function to get the featured images: <a href=# rel=prettyPhoto> <?php

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.