psychowolvesbane Posted April 5, 2008 Share Posted April 5, 2008 Hi, I have a OnMouseOver event and OnClick on a table row that acts as a link to a further page depending on what was listed in that row. On the MouseOver event it is supposed to change the mouse pointer to a hand, but for some reason Firefox (2.0.0.13) doesn't like the code whereas in IE7 it works without any problems. Here's the code I use: <span class="TextHeader1">Clothing Categories</span> <table> <?php $conn = mysql_connect($Host,$Username,$Password) or die(mysql_error()); $db = mysql_select_db($Dbname, $conn); $sql = "SELECT DISTINCT ItemType FROM Clothing ORDER BY ItemType"; $rs = mysql_query($sql,$conn) or die('Problem with query: ' . $sql . '<br />' . mysql_error()); while($row = mysql_fetch_array($rs)) { $ItemType = $row['ItemType']; echo "<tr style=\"color:#E61732; line-height:8pt; font-size:9pt\" onMouseOver=\"this.style.backgroundColor='#FF7777'; this.style.color='#CC0000'; this.style.cursor='hand'\" onMouseOut=\"this.style.backgroundColor='white'; this.style.color='#E61732'\" onClick=\"location.href='search.php?Category=$ItemType'\"> <td>>$ItemType</td> </tr>"; } MySQL_close($conn); ?> </table> The error I get in the ErrorConsole is: Error in parsing value for property 'cursor'. Declaration dropped. Any one got ideas? Quote Link to comment Share on other sites More sharing options...
nogray Posted April 7, 2008 Share Posted April 7, 2008 try changing the 'hand' to 'pointer' and see if it works. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.