This useful bit of code enables you to have links on your page which will let the user turn off your stylesheet.
This will mean the user will see your page without any CSS formatting whatsoever.
It is a very easy script, place this code in your <head> tag;
| <?php if( $_GET['css'] != 'false' ) { ?> <link rel="stylesheet" type="text/css" href="mystyle.css" /> <?php } ?> |
You put your link to your *.CSS file where the link is so now it is inside the IF statement. Now for the links.
Turn off CSS
| <a href="?css=false">turn off css</a> |
Turn on CSS
| <a href="?css=true">turn on css</a> |
And there you have it, one simple code for one very nice feature on your site!
Related Articles
- Turn Visitors into SalesMaking a successful online business can be a long and tiresome adventure. For most new online businesss this can just lead to failure and a website that just isnt making sales despite a high number of visitors...
- You Need No Sounds in Web Site DesignI recently received an E-mail from somebody who wanted to ask me about if they should or shouldn
- How to Use Tip Sheets to Promote Your BusinessThe goal of marketing is to make your prospect comfortable enough to say yes to working with you. But while one prospect may need a fancy brochure, another may not be comfortable unless he meets with you. Underneath it all, your prospects just want to trust you. Use tips to gain that trust. Don....
- Is Internet Bartering Right for Your Business?Do you have extra stock or unbilled hours on your hands? Would you like to turn it into corporate gifts, travel, or services for your business? Well you can - quickly and easily - with the help of Internet-based barter networks. But is it really the best option for you?
- Offers that Turn Lookers into BuyersIf youre getting only a sluggish response for a product or service that people genuinely need, wake buyers up by spicing up your offer. Ive seen losing propositions ...
- Aesthetics of SoundThe following tutorial on the aesthetics of sound in web presentations gives away some tips to always ensure a positive aural experience for your audience.
- How Big Is Your Website?Many online experts will tell you that all you need is a one page sales site to make money online. While this is in many ways true, if you have been online for any amount of time, the idea of a one page site is a novelty.
- How To Turn Visitors Into PostersSo your having a hard time turning your visitors into posters And have no idea how to get your forum going? Well, if your someone with that problem and want things to change, look no further. In this article I will teach you different ways to encourage visitors to join your forum...
- Don't Insist On What You Like But Insist On What Other's LikeThe reason why people put up a business is because they think they have a great idea which they thought would sell. However, what they do not know is that it is often times much better to research on what others deemed as a good idea before starting off with a business...
- Turning off the Internet Explorer Image ToolbarIE 6 has this (in my opinion) annoying little toolbar that appears when someone places their mouse pointer over an image: This tool bar offers some minor convenience,.....
