Forums

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

Home Forums JavaScript Adding new element to style changer

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #42623
    AlirezaM
    Participant

    Hello to everyone!

    I have a javascript stylechanger which changes layout from wide to boxed version and changes colors and patterns in my pages.

    now I have 4 types of to top buttons and want to add it to this changer.

    my totop class is “.totop” and it’s ids is “#v1”, “#v2”, “#v3” and “#v4”.
    how can I touch the codes below to change to top button via style changer?
    the hole javascript code is this:

    http://cdpn.io/awAgh

    #124456
    AlirezaM
    Participant

    I think it can be done by a javascript coder.

    I will wait again for your help.

    thanks!

    #124457
    Paulie_D
    Member

    >I think it can be done by a javascript coder.

    Your pen has no HTML or CSS…is this intentional?

    http://codepen.io/AlirezaM/pen/awAgh

    I have very little skills in JS but it seems to me that this could all be done with a css stylesheet switcher.

    #124499
    AlirezaM
    Participant

    thanks you very much. now it’s working.

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