<style type="text/css">
body
{
margin : 0px;
}
#warn
{
width : 100%-10px;
background-color: #666666;
font : bold 10px Verdana;
color : white;
padding : 2px 10px 4px 10px;
cursor : pointer
}
#warn .x
{
float : right;
}
</style>
<script type="text/javascript" language="javascript">
var width = 800;
var height = 600;
// Text to show in the warning bar.
var warning = 'Change your screen resolution to '+width+'X'+height+' to view this site correctly!';
// Advanced html code to format the warning bar.
var code = '<div id="warn" onMouseOver="this.style.backgroundColor=\'#0099CC\ '" onMouseOut="this.style.backgroundColor=\'#666666\' " onclick="hide_warn()"><span class="x">X</span>'+warning+'</div>';
function hide_warn()
{
document.getElementById('warn').style.display = 'none';
}
if ((screen.width != width) && (screen.height != height))
{
document.write(code);
}
</script>