1 reply [Last post]
roscoe's picture
Last seen: 14 years 11 weeks ago
Joined: 2006-03-09
Posts: 138
Points: 0

Alright, so I have a client for wants me to create two a liquid and fixed layout for his MediaWiki site. I created three css files:

1 - global.css - includes properties for both layouts
2 - liquid.css - all the liquid layout properties
3 - fixed.css - all the fixed width properties

I have two links at the top of the site that say liquid and fixed. Now I want the user to be able to click on which layout they want and obviously it will switch accordingly. I know a bunch of ways to do this using PHP, but I don't have access to that and I was wondering whats the best way to do it using only JavaScript and making it so that it keeps the same layout from page to page? Any ideas?


Deuce's picture
Somewhere, USA
Last seen: 5 years 11 weeks ago
Somewhere, USA
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4424
Points: 1843

i would suggest googling

i would suggest googling "javascript style switcher"

seems to pull up a few good pages.

all ยป http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph