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

  • Home
  • SEARCH
  • 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 9186373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:30:40+00:00 2026-06-17T19:30:40+00:00

so here is my question: lets say I have a page with 3 buttons.

  • 0

so here is my question:

lets say I have a page with 3 buttons. each contains a unique pattern as as background. I want to change the entire page background image once I click/ hover on one of the buttons.

what I need is something similar to http://subtlepatterns.com/
I dont need a stop preview option, as long as the background image change again when I select a different button.

how can I do that?

also, if its not possible, this will also work for me:
change the color of a DIV (instead of the entire page background) whenever I click/ hover on one of the buttons.

  • 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-17T19:30:42+00:00Added an answer on June 17, 2026 at 7:30 pm

    have 3 different body class in ur CSS sheet:

    body.class1 {
    background: ...;
    }
    
    body.class2 {
    background: ...;
    }
    
    body.class3 {
    background: ...;
    }
    

    use jQuery to dynamic change body class

    $("#btn1").click(function() {
     $('body').removeClass();
     $('body').addClass('class1');
    });
    
    $("#btn2").click(function() {
     $('body').removeClass();
     $('body').addClass('class2');
    });
    
    $("#btn3").click(function() {
     $('body').removeClass();
     $('body').addClass('class3');
    });
    

    then finally put a id in each button to jQuery find this in DOM:

    <a id="btn1">bg1</a>
    <a id="btn2">bg2</a>
    <a id="btn3">bg3</a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is a silly question. Lets say I have a query that produces for
I have a question concerning multiple similair forms on one page. Lets say you
just a quick question here. Lets say I have a stored procedure for seleting
i have a little question here... lets say i have a 3 selectbox like
Ok so here is my question, Let's say you have a bearing of 80
NOTE: I use pseudocode in my question lets say i have a class called
Lets say we have a web page with a search input form, which submits
Following on from a previous question . Lets say I have two checkboxes on
I have made an asp.net page which executes a long sp. lets say the
Maybe a silly question but here goes anyway. Example: Let's say I have one

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.