Code:
<script language="JavaScript">
if (screen.width==640) {
document.write('Resolution is 640x480.');
} else if (screen.width==800) {
document.write('Resolution is 800x600.');
} else if (screen.width==1024) {
document.write('Resolution is 1024x768.');
} else {
document.write('Resolution is greater than 1024x768');
}
</script>
Just off the top of my head; I haven't seen any of those search results.