X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fcommons.js;h=e305e990d76639a0804919611a9d25b6b28eb5bb;hb=a3a94bbfaa5b0484a6d32bb04bde148f5f95347b;hp=3207c110723a16d26bcbc6c9ad1836c45034a7a3;hpb=890747cec77b477585fecbae3895ce51a56a1e7e;p=brisk.git 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";