<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial color=#0000ff size=2>Hi All,</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2>i have one file 
named&nbsp;&nbsp;utility.js with &nbsp;this javascript function:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>function tableruler() {<BR>&nbsp; if 
(document.getElementById &amp;&amp; document.createTextNode) 
{<BR>&nbsp;&nbsp;&nbsp; var 
tables=document.getElementsByTagName('table');<BR>&nbsp;&nbsp;&nbsp; for (var 
i=0;i&lt;tables.length;i++)<BR>&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(tables[i].className=='ruler') 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var 
trs=tables[i].getElementsByTagName('tr');<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
for(var j=0;j&lt;trs.length;j++)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if(trs[j].parentNode.nodeName=='TBODY') 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
trs[j].onmouseover=function(){this.className='ruled';return 
false}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
trs[j].onmouseout=function(){this.className='';return 
false}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp; 
}<BR>}<BR>window.onload=function(){tableruler();}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2>&nbsp;This function mark the&nbsp;row 
of one table when onmouseover on the row.</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2>When is call the function from html 
file esempio.html all work fine.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><STRONG>esempio.html is 
:</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; &lt;!DOCTYPE html PUBLIC 
"-//W3C//DTD XHTML 1.0 Transitional//EN" <BR>"<A href=""><FONT 
color=#000000>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</FONT></A>"&gt;<BR>&lt;html 
xmlns="<A href=""><FONT color=#000000>http://www.w3.org/1999/xhtml</FONT></A>" 
lang="it"&gt;<BR>&lt;head&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&lt;title&gt;Tabelle con onmouseover - 
Esempio JavaScript scaricato da 
HTML.it&lt;/title&gt;<BR>&nbsp;<BR>&nbsp;&lt;script type="text/javascript" 
src="utility.js"&gt;&lt;!--// ajax utility //--&gt;&lt;/script&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;style type="text/css"&gt;<BR>&lt;!--<BR>#demo 
tr.ruled {<BR>&nbsp; 
background:#9cf;<BR>}<BR>--&gt;<BR>&lt;/style&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2><BR>&lt;/head&gt;<BR>&lt;body &gt;<BR>&lt;br 
/&gt;&lt;br /&gt;<BR>&lt;div align="center"&gt;</DIV>
<DIV><BR>Passa con il mouse sulla tabella&lt;br&gt;&lt;br&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&lt;table id="demo" class="ruler" cellpadding="5" style="border:solid 1px 
#000"&gt;<BR>&lt;tr&gt;<BR>&lt;td&gt;Testo 1&lt;/td&gt;&lt;td&gt;Testo 
2&lt;/td&gt;<BR>&lt;/tr&gt;<BR>&lt;tr&gt;<BR>&lt;td&gt;Testo 
3&lt;/td&gt;&lt;td&gt;Testo 
4&lt;/td&gt;<BR>&lt;/tr&gt;<BR>&lt;tr&gt;<BR>&lt;td&gt;Testo 
5&lt;/td&gt;&lt;td&gt;Testo 
6&lt;/td&gt;<BR>&lt;/tr&gt;<BR>&lt;/table&gt;<BR>&lt;/div&gt;<BR>&lt;br 
/&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br 
/&gt;<BR>&lt;/body&gt;<BR>&lt;/html&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#0000ff>I'm interesting to do it from SUComponent subClass 
TabellaTest where i'have defined the method:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>updateRoot: aHtmlRoot<BR>&nbsp;super updateRoot: aHtmlRoot.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &nbsp;aHtmlRoot<BR>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;title: 
'dtr';<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; linkToStyle: (self resources addToPath: 
'cursor.css').</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &nbsp;aHtmlRoot &nbsp;linkToScript: (self resources 
addToPath: 'utility.js' ).</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#0000ff>and where &nbsp;the renderContentOn: t1 method 
is:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#0000ff><FONT color=#000000>renderContentOn: t1</FONT> 
</FONT></DIV>
<DIV>&nbsp;t1 heading: 'My friends' level: 1.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; t1&nbsp;table id: 'demo';&nbsp; class: 'ruler'; style: 'border:solid 
5px #000'; attributeAt: #cellpadding put:'15';&nbsp; 
with:[<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self 
renderDatabaseRowsOn: 
t1].<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;t1 
horizontalRule.<BR>&nbsp;&nbsp;</DIV>
<DIV><FONT color=#0000ff>The rendering work fine but the selection row when 
onmouseover d'ont work.</FONT></DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff>What i'have wrong ?</FONT></DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial color=#0000ff size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Any pointers would be 
greatly appreciated!<BR><BR>Thanks!</SPAN></FONT></P><FONT face=Arial 
size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Dario 
Trussardi</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT 
color=#0000ff></FONT></FONT>&nbsp;</DIV></FONT></DIV></FONT></DIV></BODY></HTML>