here is the code; i want to disable the onclick event for the <td> cells with edit and remove link....please help...as i told i don't want to it the stupid way!
while ($rows = mysql_fetch_array($result)) //while1
{
extract($rows);
$color = ($color == "#E0E0E0" ? "#C0C0FF" : "#E0E0E0");
?>
<?php if ($acslvl >= $access_lvl){// if for <tr> tag?>
<tr onmouseover="style.background = '#FFFFC0'; style.cursor='pointer'"
onmouseout="style.background = '<?php echo $color?>'"
bgcolor= <?php echo $color?> onclick="winopen('userinfo.php?id=<?php echo $id?>',400,400)">
<?php
echo "<td> $id";
if ($ulock) echo "<img alt = 'User is Locked by Administrator!' src='images/tinlock.png'>";
echo "</td>";
echo "<td >$username</td>";
echo "<td align = left>$fullname</td>";
echo "<td align = left>$email</td>";
echo "<td style = 'color:gray; font-size:12px' align = center>";
if($access_lvl >=3)
{
echo "<div style = 'color:black; font-size:12px' align=left ><img src = 'images/usuper.png'>Super User</div>";
}elseif($access_lvl ==2)
{
echo "<div align=left><img width =20 height=20 src = 'images/uadmin.png'>Admin</div>";
}elseif($access_lvl ==1)
{
echo "<div align=left><img width =20 height=20 src = 'images/uend.png'>End User</div>";
}else
{
echo "Unknown";
}
echo "</td>";
if ($acslvl >= 2)
{
echo "<td align = center >[<a class = activelink href='edituser.php?id=" . $id . "'>Edit</a>]</td>";
}
if ($acslvl >= 3)
{
echo "<td align = center>[<a class = activelink href='transact-users.php?action=rem&id=".$id."'>Remove</a>]</td>";
}
echo "</tr>";
}//end if for <tr>
//$news[] = $newstext;
}//endwhile1