This script is handy for determining screen size on the diagonal. Conventional models do not account for mobile and tablet tilting.
Another note, most screen sizes are calculated on the diagonal. This script returns that value for what ever shape the screen might take and is a more reactive approach to calculating screen dimension.
Uses a 1x1 pixel animated gif to achieve the color-shift. Also includes cross browser compliant CSS to achieve text effects, rounded corners and drop shadow