|
Posted by Jonathan N. Little on 05/29/06 19:24
Andrew wrote:
> Jonathan N. Little wrote:
>> Andrew wrote:
>>> Jonathan N. Little wrote:
>> Okay, let's cut to the chase...instead of playing twenty questions
>> give us a URL and let us *see* what you are doing and maybe we can
>> come up with either a solution or an alternative...
>
>
> http://www.muonlab.com/test/test.html
> http://www.muonlab.com/test/test.css (table.results section)
>
Also for what it is worth in your CSS you are setting the TD's
border-width to 0 but your are not collapsing the borders on the table.
To do so to the TABLE element apply "border-collapse: collapse;" and to
center table on page "margin-right: auto; margin-left: auto;" not the
deprecated CENTER element.
Now to trapping mouseovers, if you need to identify both rows and
columns location rather than trap event on both TR & TD elements only do
it on TDs. Then either id the row by in your mouseover script identify
the TD from its ID and and get the the row from the TR ID via the
element.parent property.
Or a simpler method is if your table's output in generated with a
server-side script just encode both the row ID and column ID in each
cell. 3 options I can think of off-hand.
Fixed length is easy: <td id="aaaaabbbbb"> where aaaaa is row identifier
and bbbbb is column identifier and a simple split string function could
break apart the two ids
Or tokens in the identifier <td id="R1234C12"> (Row = 1234, Column = 12)
Or delimiter token in the identifier <td id="S123_2"> Search ID for the
'_' and the from half is the Job number and after is the column number.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|