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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:30:35+00:00 2026-05-19T01:30:35+00:00

Too long too read. This is the core of my Gallery script. This looks

  • 0

Too long too read.
This is the core of my Gallery script. This looks more complicated then it really is.. but of my lack of JQuery (Javascript) knowledge im not able to program it on my own. The most javascript is only pseudo so it where nice if you could translate the pseudo javascript into actually valid javascript (Jquery).

I have a Gallery which shows a big image. I have a thumbnails list which contains some thumb images the user can click on to navigate between the Gallery Images. I have an information pool. Its a list which contains all big images for the Gallery. The Gallery gets its information from this information pool. – I use an invisible pool during some animation issues.

HTML

<div id="gallery">
<ul>
<li>Item 1</li> <--! Item 1 is the standard item that is shown on the page-->
</ul>
</div>

<div id="thumbs">
<ul>
<li>Thumb 1</li> <--! This list contains thumbnails for the gallery-->
<li>Thumb 2</li>
<li>Thumb 3</li>
<li>Thumb 4</li>
</ul>
</div>

<div style="display:hidden;" id="pool"> <-- its invisible for the human eyes -->
<ul> <--! This list is the information pool which stores the big pictures of the gallery-->
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
</ul>
</div>

Pseudo (JQuery) Javascript

$('#thumbs ul > li).click( function() {
$(this).add the next li from the pool to this list //this snippet is important for me - how do I write this?
});

User Interaction e.g.
This is the workflow how it should work – im open for every good idea to get the result

User clicks thumbnail number 3
Script gets Item 3 from the #pool
and attract it to the #gallery (Javascript needed ^^)

Looks like this:

HTML

<div id="gallery">
<ul>
<li>Item 1</li> <--! Item 1 is the standard item that is shown on the page-->
<li>Item 3</li> 
</ul>
</div>

Now we animate (we scroll 800px to Item 3)

$(#gallery ul).animate(right: -800);

HTML

<div id="gallery">
<ul>
<li>Item 1</li> <--! Item 1 is the standard item that is shown on the page-->
<li>Item 3</li> <--!The  User will see this big picture now -->
</ul>
</div>

Javascript

$('#gallery ul li').erase the not see able < li> Item 1 </ li> from the list

Should look like this:

HTML

<div id="gallery">
<ul>
<li>Item 3</li> <--!The  User will see this big picture now  and Item 1 is gone-->
</ul>
</div>

User clicks thumb 2

Attract Item 2 from #pool to the gallery !but dont put it under Item 3 – no put it above Item 3, so we can scroll to the left instead of scrolling right

Should look like this:

HTML

<div id="gallery">
<ul>
<li>Item 2</li> <--! This is putted above < li> Item 3 < /li> -->
<li>Item 3</li> <--!The  User will see this big picture now  and Item 1 is gone-->
</ul>
</div>

Now we animate (we scroll 800px to Item 2)

$(#gallery ul).animate(right: 800);

User now only sees the image from Item 2

Javascript

$('#gallery ul li').erase the not see able < li> Item 3 </ li> from the list

Should look like this:

HTML

<div id="gallery">
<ul>
<li>Item 2</li> <--!The  User will see this big picture now  and Item 3 is gone-->
</ul>
</div>
  • 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-19T01:30:35+00:00Added an answer on May 19, 2026 at 1:30 am

    You should align your code properly.

    There are a lot of jQuery plugins and tutorials on how to do this. Seriously, like, tons.

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

Sidebar

Related Questions

Since I got TLDR (too long didn't read) comments, I stripped 90% of this
It would take too long to explain why I need this, but I was
been working on this way too long...but can't seem to identify the problem. Already
I did some timestamp prints from within script, this piece is taking too long:
For those who find it too long, just read the bold lines. My project
Given a string that isn't too long, what is the best way to read
Been at this far too long; trying to populate a field in a record
I remember the days (not too long ago, really) when log4net came along with
The too long; didn't read version: Is there any way to disable the automatic
I've created an interactive image thing...but it takes a little too long to load.

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.