Jump to content

[SOLVED] Problem with code in Firefox


Recommended Posts

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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.