southbeach
Programmer
I have a table like so
The onclick triggers
For now, as you may notice, I am doing nothing more than resetting the background color of the row after the confirm action. My problem is that the hover effect is lost as if the row's onmouseover effect is no longer there.
What am I doing wrong? I feel that this is a very simple mistake but I have been looking at it for too long to see it.
Thank you all in advance for your assistance!
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
Code:
<tr class="datarow1" onmouseover="this.className='datarowhover';" onmouseout="this.className='datarow1';" id="row2">
<td onclick="xajax_pos('EDITIH','2');">2</td>
<td onclick="xajax_pos('EDITIH','2');"></td>
<td onclick="xajax_pos('EDITIH','2');"></td>
<td onclick="xajax_pos('EDITIH','2');"></td>
<td onclick="xajax_pos('EDITIH','2');"></td>
<td style="text-align: center"><img src="images/trash.gif" alt="DEL" title="REMOVE THIS VENDOR!" onclick="remVendor('row2','1');" /></td>
</tr>
The onclick triggers
Code:
function remVendor(rowid,count) {
document.getElementById(rowid).style.background='#FF0000';
action=confirm('You have chosen to remove this vendor!\n\nPlease click OK to remove - CANCEL if otherwise.\n\n');
if(count == 1) { document.getElementById(rowid).style.background='#FFFF66'; }
else { document.getElementById(rowid).style.background='#FFF'; }
}
For now, as you may notice, I am doing nothing more than resetting the background color of the row after the confirm action. My problem is that the hover effect is lost as if the row's onmouseover effect is no longer there.
What am I doing wrong? I feel that this is a very simple mistake but I have been looking at it for too long to see it.
Thank you all in advance for your assistance!
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.