Re: Differentiating between horizontal and vertical table borders
- From: Dr J R Stockton <jrs@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 5 Feb 2009 21:25:08 +0000
In comp.lang.javascript message <946526fb-d081-423f-acda-2ce1121aaba7@p2
g2000prf.googlegroups.com>, Wed, 4 Feb 2009 20:00:02, Csaba Gabor
<danswer@xxxxxxxxx> posted:
When the mouse passes over an (internal) table border,
I'd like to be able to differentiate between it passing over
a horizontal border (moving between rows) and passing
over a vertical border (moving between columns). This
is strictly for IE 6+ on Windows.
You could, possibly, change from a bordered table of X * Y cells to a
non-bordered table of (2X+1) * (2Y+1) cells. Numbering rows and columns
from 1, cell 2X,2Y would correspond with the original cell X,Y. The new
cells, those with odd numbers, would be tall and thin or short and wide
(odd-odd would be thin and short), and would serve as borders. Now you
can give the tall thin cells one onMouseOver action, the short wide
cells another, and the thin short ones a combination.
You could, of course, add table borders. And you could add an external
CSS border too.
That should be compatible with all browsers, so you could test with
those if you wanted to.
--
(c) John Stockton, nr London UK. ?@merlyn.demon.co.uk IE7 FF3 Op9 Sf3
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
.
- Follow-Ups:
- Re: Differentiating between horizontal and vertical table borders
- From: Laser Lips
- Re: Differentiating between horizontal and vertical table borders
- References:
- Differentiating between horizontal and vertical table borders
- From: Csaba Gabor
- Differentiating between horizontal and vertical table borders
- Prev by Date: Re: Differentiating between horizontal and vertical table borders
- Next by Date: Re: Cross-Browser Mouse Event Handling, Encore
- Previous by thread: Re: Differentiating between horizontal and vertical table borders
- Next by thread: Re: Differentiating between horizontal and vertical table borders
- Index(es):
Relevant Pages
|