From 1e58e9e90c87e2cfa382bf59ca7ee6f0bdd9c3f9 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Fri, 1 Aug 2008 07:45:40 +0000 Subject: [PATCH] multiple topbanner big banner added --- web/commons.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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"; -- 2.17.1