style sheets

They have: 37 posts

Joined: Oct 1999

Is there a way to load different style sheets to the same document? I would like to be able to pick the style from a drop-down box and reload the page.

They have: 81 posts

Joined: Feb 2000

This site shows one way to do it, though I've never tried it.

Let us know if you get it to work so we can see it in action.

Bimjo

They have: 37 posts

Joined: Oct 1999

Unfortunately I won't be using it against a server so this will not work.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

You might be able to do it with JavaScript, so that each link in the dropdown writes a different css link, such as if X, document.write blah blah... I betcha one of the smarties here could write it for you. Otherwise, you could have each link the same page except for the CSS? Long, but doable.

hth,

Suzanne

------------------
Zero Cattle
Suzanne
Tables DeMystified

They have: 231 posts

Joined: Feb 2000

You could use JavaScript to dynamically write the link to the stylesheet like Suzanne suggested. You would have to pass the selected item from the dropbox as a querystring.

1.select dropbox item
2.create new url from selected item
3.link to new url
4.get querystring
5.write stylesheet link from querystring

The querystring would look something like "filename.html?style=3". If you would like to use this method then I can send more detailed info.

:: Lloyd Hassell :: http://www14.brinkster.com/lloydh ::

They have: 37 posts

Joined: Oct 1999

I sure would like to give a try.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.