Random thoughts and musings. Part of an oliology.

oliology.diary

Donnerstag, Dezember 22, 2005

Converting Internet Explorer users to Firefox
Internet-Explorer-User zu Firefox

Google has extended their campaign to pay 1$ for each user who switches to Firefox with Google Toolbar to outside the USA now. (The campaign is part of AdSense.)

I've decided to grasp this opportunity and show IE users a warning and a download buttons on some of the sites which I maintain. Kids, try this at home:

  1. Create an AdSense account. (It may take a few days until Google has activated the account.)
  2. I've used a variant of the script at Explorer Destroyer: It doesn't use any redirects and additionally sets a cookie so that the warning is displayed only every seven days instead of on each visit.
  3. The onload handler in the HTML BODY executes hasIE_hideAndShow();.

The script only is executed if the User is browsing with IE, JavaScript is activated and the browser accepts cookies for the corresponding site. The warning replaces all children of the BODY and puts them back in after the user has clicked the warning off. So: No one gets locked out.

Explorer Destroyer offers two more variants of the script: a milder one (where the warning doesn't replace the page, but just is added as an ad) and a dead-serious on (which completely locks out any IE users).


Google bietet jetzt auch außerhalb der USA an, pro User einen Dollar zu zahlen, den man zum Downloaden von Firefox mit der Google-Toolbar begeistern kann. (Das Ganze läuft über Googles Anzeigenprogramm AdSense.)

Ich habe mich jetzt entschieden, die Gelegenheit zu ergreifen und auf einigen der Sites, die ich betreue, den Usern mit Internet Explorer deutlichen Hinweis und einen Firefox-Download-Button anzuzeigen. Kinder, probiert das zu Hause ruhig selbst aus:

  1. Einen Account bei Google AdSense einrichten. (Es dauert ein paar Tage, bis der Account freigeschaltet ist.)
  2. Ich habe eine Variante des Skriptes bei Explorer Destroyer eingesetzt, die ohne Redirects auskommt und außerdem einen Cookie setzt, so dass nur die IE-User die Warnung nur alle sieben Tage bekommen statt jedesmal.
  3. Der Onload-Handler im HTML-BODY führt hasIE_hideAndShow(); aus.

Das Skript wird nur aktiv, wenn der User den IE benutzt, JavaScript eingeschaltet hat und Cookies von der entsprechenden Seite akzeptiert. Die Warnung ersetzt den kompletten Inhalt des BODYs und macht die Ersetzung wieder rückgängig, wenn der User die Warnung wegklickt. Sprich: Ausgesperrt wird noch nicht.

Explorer Destroyer bietet allerdings auch noch eine mildere Variante an (bei der die Warnung den Inhalt nicht ersetzt, sondern nur als Anzeige benutzt wird) sowie eine verschärfte Variante (die IE-User komplett aussperrt).

Oliver @ 15:25 | Permalink | 0 comments/Kommentare

|

Good people

Good Software

Archive