Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Shape with transparent click through Date: Wed, 03 Sep 2014 03:28:45 +0200 Organization: PointedEars Software (PES) Lines: 28 Message-ID: <8985505.dSd017Y80t@PointedEars.de> References: <4867520.6Lz3d7RzCT@PointedEars.de> <0gqc0alv9b4cub4r3tuja29rctupjblcbt@4ax.com> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1409707725 13980 eJwFwYENACAIA7CXwLEh5xjN/j/BllDqdokqmn4zISxcZIZNcA4lpzpPTO4F7+oT7w1c6wP6kQ/m (3 Sep 2014 01:28:45 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Wed, 3 Sep 2014 01:28:45 +0000 (UTC) User-Agent: KNode/4.14 X-User-ID: eJwNx8EBwCAIA8CVDBKi46DI/iO09zvOQFx5MJzNzmsCX/09FjsHZt4uActpGpe7hp8EFyZMltVyMR72oeoDOrIUlg== Cancel-Lock: sha1:swiDcj62tOt1P+2hJWEL4GtU8Pc= X-NNTP-Posting-Host: eJwFwYEBwCAIA7CXViydnAMo/59g4ktQ/5SLPj7BClrz7uSOSsg+negRFxvRxyr9GoZgHjwVNxD7 Xref: csiph.com comp.lang.javascript:25811 Ed Jay wrote: > Andrew Poulos […] wrote: >> I've been using wz_jsgraphics.js to draw the circle but I'd rather >> something that looked, and is, better. Things like Canvas, VML, and SVG >> all give better looking results but don't allow for clicking through >> transparent areas. (And I'm not that interested in coding something that >> captures clicks and passes them on). >> > Z-index is your friend here. The z-index CSS property is likely to be unnecessary here because added elements in the same stacking context are higher on the z-axis even without the declaration. IOW: In the same stacking context, following elements overlap preceding elements, and absolute positioned elements overlap relative positioned or not positioned (“static”) elements. > I have a similar button that resides on the bottom layer of a 5-canvas > stack. The button is attached as a child and has a high z-index to set > it standalone above all the other layers. ISTM you have not read the problem description thoroughly. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not Cc: me. / Bitte keine Kopien per E-Mail.