summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2010-01-07 23:09:56 -0500
committerChris Buechler <cmb@pfsense.org>2010-01-07 23:09:56 -0500
commit856722c390895c14130df1e035dd0973361f9c02 (patch)
tree0d7ba95c11e7c4484b6ae02f660bb388ace40c07 /usr/local/www
parent85cf9132a048667a165d40b3e92be20bcaacebdd (diff)
downloadpfsense-856722c390895c14130df1e035dd0973361f9c02.zip
pfsense-856722c390895c14130df1e035dd0973361f9c02.tar.gz
fix alert scroller in Chrome
Ticket #237
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/javascript/ticker.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr/local/www/javascript/ticker.js b/usr/local/www/javascript/ticker.js
index 8297c10..3e32e33 100755
--- a/usr/local/www/javascript/ticker.js
+++ b/usr/local/www/javascript/ticker.js
@@ -29,15 +29,17 @@ function populatescroller(){
try {
scroller=document.getElementById? document.getElementById("scroller") : document.all.scroller;
scroller.style.left=parseInt(width)+8+"px";
+ scroller.style.width = parseInt(document.getElementById("marquee-text").offsetWidth) + 40 + "px";
scroller.innerHTML=content;
- document.getElementById("marquee-text");
+ document.getElementById("marquee-text");
actualwidth=document.all? document.getElementById("marquee-text").offsetWidth : document.getElementById("marquee-text").offsetWidth;
lefttime=setInterval("scrollmarquee()",20);
}catch(e){}
}
function scrollmarquee(){
- try {
+
+ try {
if (parseInt(scroller.style.left)>(actualwidth*(-1)+8))
scroller.style.left=parseInt(scroller.style.left)-copyspeed+"px";
else
@@ -46,11 +48,11 @@ function scrollmarquee(){
}
if (iedom){
- document.write('<table id="marquee"><td>');
+ document.write('<table id="marquee"><tr><td>');
document.write('<div id="container" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=speed">');
document.write('<div id="scroller"></div>');
document.write('</div>');
- document.write('</td></table>');
+ document.write('</td></tr></table>');
}
//-->
OpenPOWER on IntegriCloud