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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:24:47+00:00 2026-05-30T10:24:47+00:00

I’ve created a ui concept for a website that requires the combination of two

  • 0

I’ve created a ui concept for a website that requires the combination of two different code sources, but I don’t really know how to bring them together properly as I am not that fluent in javascript.

I want to combine this Javascript accordion menu with this filtered photo gallery plugin. Here’s where it gets complicated.

I have beverage flavors to display as an online catalogue. I want to be able to filter these by division (i.e. Coffee, Food, Sugar, Tea), so I’m using the gallery plugin for the filter. On the gallery’s demo page, instead of supermodels in the photos, just imagine title images for each section of products.

What happens right now when you click on an image is what I want to change. Instead of clicking on an image to see a larger lightbox version (using PrettyPhoto), I want to eliminate PrettyPhoto altogether and use the javascript menu to drop down underneath the photo to display a plain text list of flavors. If the user clicks the image again, the menu will swing back up into the photo and disappear.

Is there a way to hide my accordion menus within each image element and still be able to filter the results with all the animations and no glitches? And on-image-click the menu will display flavors over top of the surrounding images? (I don’t want everything to be relatively positioned because the dropdown menu will knock everything around, unless I keep the results vertical and not in grid layout.)

Thanks for all your help in advance. This one is really stumping me because I have no tutorials or support to go on.

  • 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-30T10:24:49+00:00Added an answer on May 30, 2026 at 10:24 am

    Well I haven’t used the quicksand plugin, but the drop down accordion effect you want should be independent of the gallery’s filter functionality. (again, not having used it, I can’t say say for sure)

    First I would drop the code base for the accordion menu and create your own drop down functionality. After inspecting the dom for the gallery page, what I would do is create a div element as the next sibling after the anchor tag on the image, setting it’s display to none. Add a jquery toggle event to the anchor element and then add the slideDown/slideUp functionality to the toggle event. (or a slideToggle method to a click event, less code, does the same thing). If you don’t want more than one slide down menu to be open at once, then use a click event to hide all dropdowns, then show current dropdown.

    Each li element would have to have a position relative (which is fine without any top, left, bottom, right properties), and each div element would have position absolute. Think of it like a drop down navigation menu.

    If the addition of the hidden div to the li element messes with the filter functionality, you could try creating a json object for each image with it’s corresponding slidedown data and using a function to inject the data in a dynamically created div element.

    *EDIT: I must have missed it the first time I read, but what do you mean: “And on-image-click the menu will display flavors over top of the surrounding images?”

    I thought you wanted the list of flavors to appear underneath the image in a drop down menu. Are you saying you want the flavors to appear in drop down underneath and at the same time, cover the other images on the page?

    *Edit 2: To answer your question..

    $('a.somelink').toggle(function() {
        $(this).next().slideDown(200);
    }, function() {
        $(this).next().slideUp(200);
    });
    

    Or

    $('a.somelink').click(function() {
        $(this).next().slideToggle(200);
        return false;
    });
    

    These two are fine if you don’t mind having more than one drop down open at a time, but if you need only one open at a time then try this:

    $('a.somelink').click(function() {
        if ($(this).hasClass('active') == true ) {
            $(this).next().slideUp(200);
            $('a').removeClass('active');
        } else {
            $('a.somelink').removeClass('active');
            $('.sub_div').slideUp(200);
            $(this).addClass('active').next().slideDown(200);
        }
        return false;
    });
    

    *new Edit: your li elements should look like this:

    <li class="item">
       <a href="#"><img src="thumbnail.jpg" /></a>
       <div class="drop_down_content">Content in Drop down</div>
    </li>
    

    This layout should not change even after clicking the filter button

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

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have this code to decode numeric html entities to the UTF8 equivalent character.
I am doing a simple coin flipping experiment for class that involves flipping a

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.