Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript for preventing "burn-in" problem on lcd screen

Tags:

javascript

lcd

I'm building a non-public web app that will be used as info-monitor. As such, it will be running 24/7 on one LCD TV display.

Since this could produce a "burn-in color" error on the LCD I'm looking for a Javascript that will prevent/reduce this problem. I want to use something similar to those they use on airport displays (a line periodically moving from left to right and top to bottom and switching color).

Do you know any Javascript doing this? Thank you!

like image 600
Spiro Krasic Avatar asked Jan 19 '11 22:01

Spiro Krasic


People also ask

Is burn-in possible on LCD?

Although much less susceptible than Plasma TVs, LCD TVs are still subject to screen burn in (image retention). In general, you should avoid keeping a static picture (that is, a picture that contains no or few moving elements) or a picture with static elements (black bars, black borders, logos, etc.)


1 Answers

In case you were still interested: (uses jQuery)

var $burnGuard = $('<div>').attr('id','burnGuard').css({
    'background-color':'#FF00FF',
    'width':'1px',
    'height':$(document).height()+'px',
    'position':'absolute',
    'top':'0px',
    'left':'0px',
    'display':'none'
}).appendTo('body');

var colors = ['#FF0000','#00FF00','#0000FF'], color = 0, delay = 5000, scrollDelay = 1000;
function burnGuardAnimate()
{
    color = ++color % 3;
    var rColor = colors[color];
    $burnGuard.css({
        'left':'0px',
        'background-color':rColor,
    }).show().animate({
        'left':$(window).width()+'px'
    },scrollDelay,function(){
        $(this).hide();
    });
    setTimeout(burnGuardAnimate,delay);
}
setTimeout(burnGuardAnimate,delay);

Working example found here: http://www.jsfiddle.net/bradchristie/4w2K3/3/ (or full screen version)

like image 148
Brad Christie Avatar answered Oct 12 '22 23:10

Brad Christie