hi all,
i want onclick or onmouseover highlight row like phpmyadmin. But i want onclick first row then highlighted, after that onclick second row then highlighted but first row will not highlighted. At the same time i still can mouseover row for highlight.
any source can provide me?
thanks
onclick and onmouseover highlight row
Moderator: General Moderators
Something like this :
Code: Select all
<td onmouseover="e;highlight(this,'on')"e; onmouseout()="e;highlight(this,'off')"e;>Row1</td>
function highlight(srcObj,Flag)
{
srcObj.style.backgroundColor = (Flag == 'on'?"e;#000000"e;:"e;#ffffff"e;);
}