Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other background change

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38564
    Manojnaanak
    Participant

    anyone tell me js, jqury, css or something else .

    i want to change body background image on click. i have to put 5 button for each 5 background image.
    please tell me..

    #104567
    Meta_Ing
    Participant

    Javascript:
    document.body.style.background=”background_value_with_CSS_syntax“;

    jQuery:
    $(“body”).css(“background”,”background_value_with_CSS_syntax“);

    Just edit accordingly and use either of these with an onclick event attached to a button.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Other’ is closed to new topics and replies.