Redirecting to another page when Flash is not installed

For all you that need to redirect users to another page if they don’t have Flash installed and use swfobject, just drop this code and you’re good to go:

var playerVersion = swfobject.getFlashPlayerVersion(); // returns a JavaScript object
var majorVersion = playerVersion.major; // access the major, minor and release version numbers via their respective properties

if (majorVersion == 0)
 document.location = '/PAGE_THE_USER_SHOULD_BE_REDIRECTED_TO';

This should go just before:

swfobject.embedSWF("xmas/happy_christimas_2009.swf", "flashcontent", "100%", "100%", "10", false, flashvars, params, attributes);

Let me know if you have a different approach.

I have found this ( ) while searching for a solution to my problem, but it made more sense to rely on swfobject API since I was already using it to embed flash.

Solving Firefox 3.5.5 slow response and high CPU usage

Tonight I got fed up of Firefox 3.5.x eating up CPU cycles and not being responsive…. So I decided to google that to see what other have experienced and tried.

After uninstalling Flash (just to be sure as it seems it was not guilty this time 🙂 ), I tried looking for thing in the configuration.

You type in the URL address bar:  "about:config" (without quotes). Confirm that you’re going to be careful.

The setting I disabled (and didn’t even have to re-start to notice better response times was:


It is now set to false, as I don’t care about java on my browser.

I do use Eclipse while programming, so Java is still installed on my computer.

Let me know if that helps you.

  • IGlr