/    Sign up×
Community /Pin to ProfileBookmark

Changing style sheets

Is it possible to change style sheets with the click of a button or menu and some javascript? if so, can you help me out?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@dh2006Mar 20.2006 — look at my website, at least it works, though i'm not 100% sure, if it is flawless.

www.stefanie.de

(The 3 links top most right)

You need to download the switch.js, and you have to write the lines in the html for css and switch.js-loading in every html-page of course.

Then you only need the adjust the 3 links as u wish.

I downloaded it from someone who offered it for downloading, and he copied from someone else at "AListApart" form 2004(?), but finally, only my version seems now to work. ?

But feel free to copy it.

Greetings

Dieter

Edit: I'm not sure if this allowed here, but if u like the stuff and it workds properly, please give me a link on your website (anywhere?
Copy linkTweet thisAlerts:
@citizenstitchauthorMar 20.2006 — That script is amazingly complicated. I appreciate your help and was exactly what I was looking for. However I was hoping it would be simple.
Copy linkTweet thisAlerts:
@dh2006Mar 20.2006 — if u copy and paoste it and adjust the names of the css-files it is simple:

add switch.js to your directory, add the stylesheet links and the link to the swtich.js in the html, adjust the text in the switching links and copy them to your pages.

if u need a god and free css-editor, try topstyle lite.

(There is another good free editor somewhere, but i forgot it's name.)

Greetings

Dieter
×

Success!

Help @citizenstitch spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...