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

Amazon links are affiliated. Learn more.

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
A classy guitar t-shirt for classy people

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

100502

More articles to check out

  1. The classiest little Casio, AQ230
  2. Old internet humor has not aged well
  3. Where can a middle aged guy get plain sneakers these days?
  4. An HSS guitar I can actually recommend
  5. The 1,000 year disc, M-DISC
  6. The watch you buy when your smartwatch breaks
  7. This is the cheapest way to get guitar picks
  8. This is the Squier I'd buy had I not just bought one
  9. Plywood might be one of the best electric guitar tonewoods
  10. Why isn't The Whoopee Boys a cult classic?