Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. JavaScript
  4. How to change the theme in javascript?

How to change the theme in javascript?

Scheduled Pinned Locked Moved JavaScript
javascripttutorialquestion
5 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vayam Technologies Ltd Vayamtech New Delhi
    wrote on last edited by
    #1

    I am trying to add theme on my web pages on button click, but i am unable to do it.
    Would you please tell me how to do it?

    R J 2 Replies Last reply
    0
    • V Vayam Technologies Ltd Vayamtech New Delhi

      I am trying to add theme on my web pages on button click, but i am unable to do it.
      Would you please tell me how to do it?

      R Offline
      R Offline
      Rahul VB
      wrote on last edited by
      #2

      A simple google search gave me below few links: 1. Switching themes[^] 2. Using JavaScript to Change a Cascading Style Sheet (CSS) Dynamically [^] 3. How to change theme(Multiple theme) of web page using javascript and CSS[^] You will have to try a combination from the above to see what happens.

      K 1 Reply Last reply
      0
      • V Vayam Technologies Ltd Vayamtech New Delhi

        I am trying to add theme on my web pages on button click, but i am unable to do it.
        Would you please tell me how to do it?

        J Offline
        J Offline
        jkirkerx
        wrote on last edited by
        #3

        I would say you need a theme CSS file, and you use JavaScript or jQuery to change the file in the header link How to make changeable themes using css and javascript - Stack Overflow[^]

        1 Reply Last reply
        0
        • R Rahul VB

          A simple google search gave me below few links: 1. Switching themes[^] 2. Using JavaScript to Change a Cascading Style Sheet (CSS) Dynamically [^] 3. How to change theme(Multiple theme) of web page using javascript and CSS[^] You will have to try a combination from the above to see what happens.

          K Offline
          K Offline
          Karthik_Mahalingam
          wrote on last edited by
          #4

          5

          R 1 Reply Last reply
          0
          • K Karthik_Mahalingam

            5

            R Offline
            R Offline
            Rahul VB
            wrote on last edited by
            #5

            Thanks :)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups