From 2b4b289fc99ab475cdf63671a1936fc753f0df98 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Mon, 13 Oct 2008 18:11:06 +0000 Subject: [PATCH] topbanner blink added --- web/commons.js | 19 +++++++++++++++++++ web/index.php | 2 ++ 2 files changed, 21 insertions(+) diff --git a/web/commons.js b/web/commons.js index e305e99..896d072 100644 --- a/web/commons.js +++ b/web/commons.js @@ -1029,3 +1029,22 @@ function playsound(tag, sound) { ' WIDTH=1 HEIGHT=1 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'; } } + +function topbanner_init() +{ +// setInterval(topbanner_cb, 666); +; +} + +function topbanner_cb() +{ + var a, b; + + a = $('topbanner').style.backgroundColor; + b = $('topbanner').style.borderLeftColor; + + $('topbanner').style.backgroundColor = b; + $('topbanner').style.borderColor = a+" "+a+" "+a+" "+a; + + // console.log("A: "+a+" B: "+b); +} diff --git a/web/index.php b/web/index.php index a9d0b17..e18625e 100644 --- a/web/index.php +++ b/web/index.php @@ -349,6 +349,7 @@ supported by:

window.onload = function() { menu_init(); + topbanner_init(); g_withflash = DetectFlashVer(6,0,0); if (g_withflash == false) { @@ -441,6 +442,7 @@ else { ?> // alert("INDEX START"); menu_init(); + topbanner_init(); xhr_rd = createXMLHttpRequest(); sess = ""; tra = new train($('room_tit')); -- 2.17.1