From: Matteo Nastasi (mop) Date: Mon, 13 Oct 2008 18:11:06 +0000 (+0000) Subject: topbanner blink added X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fspawn;p=brisk.git topbanner blink added --- 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'));