Let me know if it breaks or simply doesn't work! I would love experts to review it. I'm good enough to make stuff work, for the most part, but whether or not there is a better approach takes someone with much more wisdom than myself!
PS: I've noticed a bug that happens once in a blue moon, but I think that's because the browser might be doing parallel work and one script gets too far ahead of the other. I'll have to research it more, but I think it's good enough right now to ask for opinions.
PSS: The page will eventually display via for<noscript> for those that don't have JS turned on, but for right now, it'll just display a message that says "Please turn JavaScript on!"
- Non-JS page is displayed with
<noscript>
- If JS is enabled, it loads the
theme theme-preference from cookies.
- JS then applies the preferred theme
via via AJAX fetching the appropriate
theme theme (skin[x].html) and the content
of of the page ([page_name.html]).
Here's theThe code. It's not completely isn't perfect yet, and I'll definitely have to remove the use of another person's image as the background for the second skin, but it's almost done. About half of the code deals with merely re-positioning the elements when the window is resized. For the sake of brevity, some code is not shown. I apologize for its length.
index.html:index.html:
funcs.js:funcs.js:
jsmenucontent.js:jsmenucontent.js: