rich menga books gear search about contact
***Secret FSR Fender guitars? Yes, they exist, and they're right here

how i used to annoy IE6 users

For a while I had this hidden code in my blog just for Internet Explorer 6 users. It basically reminded them very loudly they were using a crappy browser. Here's what it looked like:

I'm sure this annoyed the crap out of IE6 users to pieces. 😉 I eventually chickened out and took the code off. However if you want to use it, this is what I used:

<?php
$msiedetect = $_SERVER['HTTP_USER_AGENT'];
if (preg_match("/MSIE 6.0/i", $msiedetect)) {
echo "
<div id=msie6>
<p>You are using the seriously crappy Microsoft Internet Explorer 6 web browser. You will continue to see this LOUD ANNOYING notice until you stop using that awful thing and use something better such as <a href="http://www.firefox.com">Firefox</a>, <a href="http://www.opera.com">Opera</a>, or at bare minimum Internet Explorer 7. Get out of the stone age, will ya?<br><br>ONLY USERS OF IE6 SEE THIS NOTICE AND HEAR ANNOYING MIDI MUSIC. THAT MEANS YOU.
</div>
<bgsound src="INSERT LINK TO MIDI FILE HERE" loop="infinite">
";
} else {
echo "";
}
?>

What this does is read the user agent string, and if it sees MSIE 6.0 it will show the annoying stuff. 😉

The DIV tag is something I had in my CSS file that put the really loud yellow background with red text. The MIDI file is something you have to host yourself. Change out the "INSERT LINK" portion above with the link to whatever MIDI you use. If you need a song, run on over to VGmusic and pick the most annoying you can find. 🙂

image
Best ZOOM R8 tutorial book
highly rated, get recording quick!

100502

More articles to check out

  1. 32GB microSD memory cards might be on the way out
  2. Ibanez does a "Negative Antigua" finish
  3. The guitar some buy in threes because they can: Grote GT-150
  4. You're not allowed to change a brake light in a new car?
  5. Unexpected surprise, Casio F201
  6. Why the Epiphone Explorer is better than the Gibson (for now)
  7. You should surround yourself in guitar luxury
  8. Forgotten Gibson: 1983 Map Guitar
  9. Casio MTP-V003, the one everyone missed
  10. Just for the look: Peavey Solo guitar amp