林敏(david)的博客
David's WebSite---------->cool your heart
They're both convince that a sudden passion joined them. Such certainty is beautiful, but uncertainty is more beautiful still. 他们彼此深信 是瞬间迸发的热情让他们相遇。 这样的确是美丽的, 但变幻无常更为美丽。

      这个需求比较特殊,在网页中要调用一个GetArticleList(1,1,True)来生成一个文章列表表格(我没法控制这个表格里的内容,它是一个DLL生成的),它提供了两个css属性,listbg和listbg2,现在我想让表格中的每一行在鼠标经过时背景都变色,试用了这样的方法<table><tr><td>GetArticleList(1,1,True)</td></tr></table>,我在外面的<tr>或者<td>里放入

 

onmouseover="this.style.backgroundColor='#CCCCCC';return true;" onmouseout="this.style.backgroundColor=''"

 

但在这种情况下,每次鼠标经过,发生变化的都是全部表格的一半,而不是单独的行,看过关于DOM模型的文章,但在这种情况下好像也不行。唉,真麻烦!

posted on 2005-01-11 21:25  david  阅读(318)  评论(0)    收藏  举报