Re: Differentiating between horizontal and vertical table borders



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.
.



Relevant Pages

  • Re: SUM CELL BORDERS? (and by colour too?)
    ... Each cell has a Borders property and the existence of a right edge border ... if the cell to the right has a left border then you get that cells ... you can sum numeric contents of cells and you can sum the height ... (Excel Add-ins / Excel Programming) ...
    (microsoft.public.excel.misc)
  • Re: SUM CELL BORDERS? (and by colour too?)
    ... Counting the number of cells with a right border is exactly what I'd like to ... you can sum numeric contents of cells and you can sum the height ... (Excel Add-ins / Excel Programming) ...
    (microsoft.public.excel.misc)
  • Re: Borders around a table cell
    ... You can use somthing like the following, I just applied the border color red ... Dim Mini As Integer ... selected cells and handle them individually. ... to surround the entire selection with borders (using the examples the ...
    (microsoft.public.powerpoint)
  • RE: Underline every other table cell?
    ... This worked in this instance as these cells would not allow data input. ... bottom border will be applied to all cells in a row. ... then select Format> Borders and Tables> Borders ...
    (microsoft.public.word.docmanagement)
  • Re: Data entered needs to cover 2 vertical cells
    ... Another option would be to enter the delivery address in each row, and then use conditional formatting to hide the duplicates. ... Click Format, and select White font colour, and on the Border tab, remove the top and bottom border, then click OK ... I need to enter an address that will cover 2 vertical cells while leaving the cells either side as 2 separate cells. ...
    (microsoft.public.excel.misc)