summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Kristensen <ekristen@pfsense.org>2005-07-31 03:04:46 +0000
committerErik Kristensen <ekristen@pfsense.org>2005-07-31 03:04:46 +0000
commitb17f8e9f2a8c1bafee83541261df859ed6a3dec8 (patch)
treecc571821909fd5a9b632d136375ed3d4ae68c352
parent0f5a136d0dd0bb6a15a9946756b1954a71bcc1eb (diff)
downloadpfsense-b17f8e9f2a8c1bafee83541261df859ed6a3dec8.zip
pfsense-b17f8e9f2a8c1bafee83541261df859ed6a3dec8.tar.gz
files needed for the alert system
-rw-r--r--usr/local/www/themes/pfsense-dropdown/images/alert_bgr.gifbin0 -> 1651 bytes
-rw-r--r--usr/local/www/themes/pfsense/images/alert_bgr.gifbin0 -> 1651 bytes
-rwxr-xr-xusr/local/www/ticker.js52
3 files changed, 52 insertions, 0 deletions
diff --git a/usr/local/www/themes/pfsense-dropdown/images/alert_bgr.gif b/usr/local/www/themes/pfsense-dropdown/images/alert_bgr.gif
new file mode 100644
index 0000000..2a5c000
--- /dev/null
+++ b/usr/local/www/themes/pfsense-dropdown/images/alert_bgr.gif
Binary files differ
diff --git a/usr/local/www/themes/pfsense/images/alert_bgr.gif b/usr/local/www/themes/pfsense/images/alert_bgr.gif
new file mode 100644
index 0000000..2a5c000
--- /dev/null
+++ b/usr/local/www/themes/pfsense/images/alert_bgr.gif
Binary files differ
diff --git a/usr/local/www/ticker.js b/usr/local/www/ticker.js
new file mode 100755
index 0000000..bc4ddc6
--- /dev/null
+++ b/usr/local/www/ticker.js
@@ -0,0 +1,52 @@
+<!--
+
+var width="310px"
+
+var speed=2
+var pauseit=1
+
+var divonclick=speed=(document.all)? speed : Math.max(1, speed-1)
+var copyspeed=speed
+var pausespeed=(pauseit==0)? copyspeed: 0
+var iedom=document.all||document.getElementById
+
+if (iedom)
+ document.write('<span id="marquee-container">'+content+'</span>')
+
+var actualwidth=''
+var scroller
+
+if (window.addEventListener)
+ window.addEventListener("load", populatescroller, false)
+else if (window.attachEvent)
+ window.attachEvent("onload", populatescroller)
+else if (document.all || document.getElementById)
+ window.onload=populatescroller
+
+function populatescroller(){
+ scroller=document.getElementById? document.getElementById("scroller") : document.all.scroller
+ scroller.style.left=parseInt(width)+8+"px"
+
+ scroller.innerHTML=content
+ actualwidth=document.all? document.getElementById("marquee-text").offsetWidth : document.getElementById("marquee-text").offsetWidth
+ lefttime=setInterval("scrollmarquee()",20)
+}
+
+function scrollmarquee(){
+ if (parseInt(scroller.style.left)>(actualwidth*(-1)+8))
+ scroller.style.left=parseInt(scroller.style.left)-copyspeed+"px"
+ else
+ scroller.style.left=parseInt(width)+8+"px"
+}
+
+if (iedom){
+ with (document){
+ document.write('<table id="marquee"><td>')
+ write('<div id="container" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=speed">')
+ write('<div id="scroller"></div>')
+ write('</div>')
+ document.write('</td></table>')
+ }
+}
+
+//--> \ No newline at end of file
OpenPOWER on IntegriCloud