Welcome to the Valley of Nightmares! ---- There's nothing scary about this site, really, the site has nothing to do with the name - so ignore! =O Anyways, enjoy the site while it's alive because you never know when I will accidently press the red button over there in the corner...*coughcough* ^_^;

     Main.Page
     Splash.Page
     F.A.Q
     About.Us
     Contact.Us
     Affiliation
     VN.History
     VN.Characters
     Past.Layouts
     Linkage (In/Out)
     Our.Awards
     Win.an.Award
     Report.an Error!
     Arigatou.Thanks!

     VN.Radio.Blog
     VN.Blab Forums
     VN.Oekaki
     VN.Topsites
     Plushies.Paresu
     Final.Kiseki (fansite)

     Fun.Pokemon Pages
     DARE
     Mewonie.Baloney
     Ask.Snowbora
     Blonde.Quiz
     Personality.Quiz
     TUFV (noclickie!!)
     .......
     Random.Polls
     Funneh.Events
     Crazeh.Excuses
     How.To Annoy
     How.To.Annoy CU

     3D.Pokemon
     Pokemon.Images
     Fan.Art
     Fan.Fakes
     Art.Gallery

     Drabbles
     Touhi.Za.Kusari
     Solo (one shot)

     Red.:.Blue
     Gold.:.Silver
     Ruby.:.Sapphire
     FR.:.LG
     Dungeon.R/B
     R/S.Pokemon Sprites
     Eevee.Evolutions
     Weakness.Chart

     Video.Tutorials
     HTML.Tutorials
     Photoshop.Tutorials
     Oekakis.Setup
     PlugBoards.Setup
     RadioBlog.Help

     Free.Buttons
     Free.Layouts
     Layouts.Help
     Styleswitchers
     HTML.Tips
     SSI.PHP Include
     Web.Dictionary
     Source.Codes
     Tips.And.Tricks
     Web.Resources

     Photoshop.Brushes
     Winamp.Skins
     Anti-Anti.Pokemon
     All.About N00bs
     IM.Status Messages
.:: Styleswitchers ::.

Intro & Javascript styleswitcher | PHP styleswitcher

What does a styleswitcher do, you ask? Well it allows you to instantly switch between different style sheets on your webpage. If you enjoy creating style sheets or would like to allow your guests to choose whichever style that they prefer, then you should definitely add a styleswitcher to your site.

.: Javascript styleswitcher :.

Requirements:
  • Good HTML knowledge
  • You must know how to code a CSS style sheet

    Since this styleswitcher uses Javascript, you will not have to worry about a lot of editing or whether or not your host supports a certain type of scripting. But of course, even if it is functionable in all browsers, it relies on Javascript and cookies; your visitor will have both of those things enabled (well, I'm pretty sure everyone has those things enabled). And for those who are using heavily image-based layouts, just note that when you visit your site, it may load the default style sheet first and then will eventually load the one that you have selected the last time you were in your site. It's not a big deal, but it could cause a lot of lagging for slow computers.

    First things first, you will need to download this file: (styleswitcher.js)

    You will not have to edit anything in the .JS file, just upload it into your server and leave it alone. Now, go to your HTML document and insert the two link elements below in the <head> area.

    <script type="text/javascript" src="styleswitcher.js"></script>

    <link rel="stylesheet" type="text/css" href="style1.css" title="style1">


    The first code will link the styleswitcher.js to your pages, and the second one will link to your style sheets. Be sure to have one for your default style, and you can add as many of the second link element to your HTML - depending on how many style sheets you have.

    We're not done yet, now you will need to make it so that the visitor can change the style sheet once they click on a specified link. Add the code below to where you want the styleswitcher links to appear:

    <a href="#" onclick="setActiveStyleSheet('style1'); return false;">change style to style1</a>

    <a href="#" onclick="setActiveStyleSheet('style2'); return false;">change style to style2</a>


    ...and that's it! You have your very own Javascript styleswitcher! ^-^ Keep in mind that the same Javascript link elements should be included in EVERY page, else the styleswitcher is virtually useless.