rich menga books search 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. 🙂

100502
📰Get Rich's newsletter to be notified of new articles

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

⭐ Recent Posts

Boss RC-5 Loop Station Guitar Looper PedalWill looper drums ever not suck?
It is amazing that this problem still exists.

The best looking Dean Z I've ever seen
This is an example of when Dean does the Z right.

Black Sabbath - Black SabbathMy favorite Black Sabbath track from their first album
It's not what you think it is.

Epiphone Prophecy Les PaulA secret of the Epiphone Prophecy Les Paul hiding in plain sight
It's right in front of your face and you probably didn't even notice it

Fender Player MustangShorter scale guitars with the most bang for the buck
You can go short without spending too much nor getting something too cheap.

🔥 Popular Posts 🔥

Boss RC-5 Loop Station Guitar Looper PedalWill looper drums ever not suck?
It is amazing that this problem still exists.

Casio F-91WCasio F-91W cheat sheet
A quick guide on how to set the time, date and a few other tips and tricks.

Casio G-SHOCK GWM5610All atomic watches are saved... for now
There will come a time when buying a watch with atomic time sync functionality will be completely pointless.

Casio A700WThe one reason why you should buy a Casio A700W
All F91W type watches should be this good.

Fender EsquireThe 5 types of guitars you should never buy
Some guitars that exist where the day after you buy them, you know you've made a mistake.

Casio CA-53WHow to set the time and date on a Casio CA-53 (with video and review)
Instructions on how to set the time and date on the Casio CA53 watch

Gibson MarauderGibson's "Norlin era" electric guitars
Norlin era Gibsons are some of the worst guitars Gibson ever made. Find out why.