I used a Brad script, but unfortunately my page had a large HTMl table that extended beyond the parent container. This made the pixel panel move partially across the screen. Instead of modifying my table, I added a script bounding box to find the actual width of the html table, and then used this to set the width in the Brad script.
var div = document.getElementById ("HtmlTable-ID"); if (div.getBoundingClientRect) { var rect = div.getBoundingClientRect (); w = rect.right - rect.left; // alert (" Width: " + w ); } 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': w +'px' },scrollDelay,function(){ $(this).hide(); }); setTimeout(burnGuardAnimate,delay); } setTimeout(burnGuardAnimate,delay);
Progrower
source share