Author Topic: css question  (Read 10851 times)

ygfperson

  • Founders
  • Posts: 601
  • Karma: +10/-1
    • Last.fm
css question
« on: May 10, 2005, 03:36:40 PM »
is there a way to have a web page change its stylesheet through an option in that page without needing a server-side tool like php?

ober

  • Ashton Shagger
  • Ass Wipe
  • Posts: 14305
  • Karma: +73/-790
  • mini-ober is taking over
    • Windy Hill Web Solutions
css question
« Reply #1 on: May 10, 2005, 03:49:11 PM »
I'm sure you could do it with javascript and document.write.

aran

  • the capital of djibouti is djibouti
  • Jackass III
  • Posts: 110
  • Karma: +12/-3
css question
« Reply #2 on: May 10, 2005, 03:59:22 PM »
search google for it. it's actually quite easy to do. I've done it before...

here's the page i did it to: http://lskbz7l.linuxclass.marist.edu/assignment7.html
this apparatus must be unearthed.

ygfperson

  • Founders
  • Posts: 601
  • Karma: +10/-1
    • Last.fm
css question
« Reply #3 on: May 10, 2005, 07:41:30 PM »
it works on firefox but not in internet explorer... ideas?

//edit: is there a way to use cookies to make this change relatively permanent and used on more than one web page?

Mike

  • Jackass In Charge
  • Posts: 11248
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
css question
« Reply #4 on: May 10, 2005, 09:16:14 PM »
Probably because IE is the suck.