I've seen sites enable the user to toggle flash enabled versions of their pages on and off. I know this is acomplished by PHP, but I'm not quite sure how to script it or where I can find a script like that.
I have browsed w3schools.com and found this simple switch example:
<?php
switch (2)
{
case 1:
echo "Number 1";
break;
case 2:
echo "Number 2";
break;
case 3:
echo "Number 3";
break;
default:
echo "No number between 1 and 3";
}
?>
If I were to use this in the areas where I plan on injecting Flash or non-Flash elements, how do I feed HTML code into those cases? And how do I get it to toggle?
You can see examples of what I mean at
http://www.broadcom.com/ and at
http://www.***-kickin.com/
On Broadcom, just click "Turn Flash On" and for ***-Kickin, click the "Turn Flash Off" tab at the bottom. That's the toggle I'm trying to accomplish.