X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fcommons.js;h=1563ec82dfecbb0edaec70f162ff3bfe05bdac88;hb=93d7a6690daa9a9138277a8d83edb766fb2bab8a;hp=09129c3f9af6daee4d89e72d2184ea8a298bbf90;hpb=328de26963e512cc34c999baf67f449020a62bfd;p=brisk.git diff --git a/web/commons.js b/web/commons.js index 09129c3..1563ec8 100644 --- a/web/commons.js +++ b/web/commons.js @@ -1228,38 +1228,20 @@ function topbanner_cb() // console.log("A: "+a+" B: "+b); } -function sidebanner_init() +function sidebanner_init(idx) { - setInterval(sidebanner_cb, 666); + setInterval(function () { sidebanner_cb(idx); }, 666); } -function sidebanner2_init() -{ - setInterval(sidebanner2_cb, 666); -} - -function sidebanner_cb() -{ - var a, b; - - a = $('sidebanner').style.backgroundColor; - b = $('sidebanner').style.borderLeftColor; - - $('sidebanner').style.backgroundColor = b; - $('sidebanner').style.borderColor = a+" "+a+" "+a+" "+a; - - // console.log("A: "+a+" B: "+b); -} - -function sidebanner2_cb() +function sidebanner_cb(idx) { var a, b; - a = $('sidebanner2').style.backgroundColor; - b = $('sidebanner2').style.borderLeftColor; + a = $('sidebanner'+idx).style.backgroundColor; + b = $('sidebanner'+idx).style.borderLeftColor; - $('sidebanner2').style.backgroundColor = b; - $('sidebanner2').style.borderColor = a+" "+a+" "+a+" "+a; + $('sidebanner'+idx).style.backgroundColor = b; + $('sidebanner'+idx).style.borderColor = a+" "+a+" "+a+" "+a; // console.log("A: "+a+" B: "+b); }