From: Matteo Nastasi (mop) Date: Fri, 1 Aug 2008 07:45:40 +0000 (+0000) Subject: multiple topbanner big banner added X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=1e58e9e90c87e2cfa382bf59ca7ee6f0bdd9c3f9;p=brisk.git multiple topbanner big banner added --- diff --git a/web/commons.js b/web/commons.js index 3207c11..e305e99 100644 --- a/web/commons.js +++ b/web/commons.js @@ -140,10 +140,14 @@ function removeEvent(obj,type,fn) function show_bigpict(obj, act, x, y) { - var big; + var big, sfx; - // alert("offsetTop: "+obj.offsetTop+" offsetLeft: "+obj.offsetLeft+"obj.id: "+obj.id); - big = $(obj.id+"_big"); + if (arguments.length > 4) + sfx = arguments[4]; + else + sfx = ''; + + big = $(obj.id+"_big"+sfx); if (act == "over") { big.style.left = obj.offsetLeft + x+"px"; big.style.top = obj.offsetTop + y+"px";