Hi all ,
I am designing a webpage which uses javascript for Table highlighting
Here is the Script :
Code:<script type="text/javascript"> /******************************************************************************************** * Author - Karthikeyan Sabhanatarajan . * Contact - karthiknatrajan@gmail.com *********************************************************************************************/ function highlightEffect(e,color,txtclr) { var trig=e.srcElement; var temp; if(trig.tagName=='TD'||trig.tagName=='FONT'){ name=trig.id; if(trig.tagName=='TD') { trig.style.backgroundColor=color; document.getElementById(trig.id+"Text").style.color=txtclr; } else { trig.style.color=txtclr; temp=trig.parentNode; while(temp.tagName!='TD') { temp=temp.parentNode; } temp.style.backgroundColor=color; } } }
How do i make it firefox compatible .
This is the webpage that uses this script
http://karthiknatrajan.googlepages.com/bottomleft.htm
This works in IE and Opera
But Firefox says that
Error: trig has no properties
Source File: http://karthiknatrajan.googlepages.com/bottomleft.htm
Line: 33
How do i corect this .. should i have to explicitly include the event ..
Help me fix this





Bookmarks