"Jon" wrote
"Ivo" skrev "Jon" typed Looking for a way to select the fullrow when i click on LAG 3
So it marks all of LAG 3 for July, August, September
If I select LAG 4 it'll select of LAG 4 in the different months
It would very nice if there is a way with Javascript
Follow the link below
http://www.johak.se/schema/index.html
<snip script>
Yes it worked perfectly.
But I need it too work on several rows at the sametime
I see. The following function does that (it also sets the background on the
TR deirectly and not on its TD's separately as did the previous function for
no good reason):
function hiliteTR(el) {
var col= (el.style.background=='gold') ? 'none' : 'gold';
var r=0; while(el=el.previousSibling) r++;
var t=document.getElementsByTagName('table');
for(var i=t.length; i--; ) t[i].rows[r].style.background=col;
}
You keep add more tabels with more months to the page and the script will
find them. See it in action at
http://4umi.com/test2.htm where I have also
made a beginning with moving some stuff out of the HTML into a stylesheet.
HTH
Ivo