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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:34:58+00:00 2026-06-10T11:34:58+00:00

I have one div#logo. i set background image for this div. I change image

  • 0

I have one div#logo. i set background image for this div. I change image dynamically using jQuery.
and one common page which contain div#logo. i have one button from UI side which change the background image of div#logo.but when i redirect to another page div#logo page take default background image.

What i have to for all page which i select image form UI side button.

  • 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-10T11:35:00+00:00Added an answer on June 10, 2026 at 11:35 am

    Without persistent storage on the server side (and all the troubles arising from it like input validation etc.) I’d argue that you are best of storing the user’s choice in a cookie.

    Since you are using jQuery you could make use of the jQuery Cookie plugin.

    $(function() {
        var img = $.cookie('background') || 'standard-bg.png';
    
        $('#logo').css({
            backgroundImage: img
        });
    
        $('button').click(function() {
           var img_src = $(this)... // However you determine the particular image
    
           $('#logo').css({
               backgroundImage: img_src
           });
    
           $.cookie('background', img_src);
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one horizontally div on the top of my page with a height
I have created one menu using div animating in the middle i have structured.
I have one div that should contain text and bellow it one image. I
I have a header set up like this: <div id=header> <div class=container_16> <div class=grid_4><img
I have a logo image across the entire top of my website page. The
I have a div which contains two nested divs, one that specifies a height
I have a web page which has three <div> elements: Right_bar contains several layouts
I have a login page that has 2 tags that have a background image
I have a header which has a large image floated on one side, and
I have one large div with one smaller div inside it. The smaller div

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.