1) This is quite possibly the worste formated code I have EVER seen. Someone needs to learn where the return key is.
$view = '<a href="?mode=view&table=' . $table . '&main_id=' . $row['Product_Number'] . '" TARGET=\"_blank\">View Item</a>';
echo "<tr STYLE=\"Cursor:Hand;\" ONMOUSEOVER=\"this.style.backgroundColor='#E2EEE2';\" ONMOUSEOUT=\"this.style.backgroundColor='#FFFFFF';\">\n";
echo " <td STYLE='border-bottom-style: solid; border-bottom-width:1'>$Thumbnail</td>\n";
echo " <td STYLE='border-bottom-style: solid; border-bottom-width:1'>$Item_Name</td>\n";
echo " <td align='right' STYLE='border-bottom-style: solid; border-bottom-width:1'>$Price</td>\n";
echo " <td STYLE='border-bottom-style: solid; border-bottom-width:1'>$view</td>\n";
echo "</tr>\n";
}
echo "</table>\n";
that's better, now we can actually see what's going on.
1) this is javascript not java
2) you cannot use onmousex in a tr or td tag.
3) javascript is case senitive, i.e. it is onMouseOver not ONMOUSEOVER
here is what you can do
$view = "<a href="javascript:<javascript commands>" class=\"linkButton\">View Item</a>";
In the style sheet:
a:link.linkButton,a:visited:linkButton {
/*style code goes here*/
}
a:hover.linkButton {
/*on mouse over style code here*/
}