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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:49:47+00:00 2026-05-25T01:49:47+00:00

I have a list of N unique body classes, they all have a corresponding

  • 0

I have a list of N unique body classes, they all have a corresponding big background image on them. I’m trying to build what essentially boils down to a standard slider but instead of shifting through the li’s in a target class, I’m switching body classes “.one, .two, .three, . four, .five, etc…” using forward and back arrow navigations.

Not really sure how to do this properly, would love some insight?

  • 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-25T01:49:48+00:00Added an answer on May 25, 2026 at 1:49 am

    this is simple solution, I hope that it will help you

    <html>
        <head>
            <script src="jquery.js" type="text/javascript"></script>
            <style>
                li.active { background-color: green;}
                .one { background-color: red;}
                .two { background-color: green;}
                .three { background-color: yellow;}
                .four {background-color: #black;}
            </style>
            <script type="text/javascript">
                $(document).ready(function(){
                    $('body').attr('class',$('#senad').val());
                    $('#senad').change(function(){
                       $('body').attr('class',$(this).val());
                    });
                });
            </script>
        </head>
        <body>
            <select id="senad" size="10">
                <option value="one">One</option>
                <option value="two">Two</option>
                <option value="three">Three</option>
                <option value="four">Four</option>
            </select>
        </body>
    </html>
    

    So what I have done, I have created select box with the options, you can add them as many as you want, and just put value of option to be your class name, that you want to assign to body.

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

Sidebar

Related Questions

Trying to get all articles, with unique titles (distinct(title)), that have a body of
I have a list of dynamically generated divs all with unique data-id's and several
Lets say I have a list of 1,000,000 users where their unique identifier is
I have the list with like 100,000 site link strings Each link is unique,
I have a mysql table (table-A) that contains a list of unique product ids.
Suppose I have a list box with different items, each with unique values, and
I currently have two SQL commands. One retrieves a list of unique IDs from
I Want to have only unique values in a SharePoin List. To achieve this
I have a small html code base that produces a list of unique links,
i have a array list of unique Ids ex 1,2,3,4.... and a DataTable with

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.