Jump to content

JavaScript in PHP Syntax


ShoeLace1291

Recommended Posts

You are right, Little Guy, what's stupid is that the MS's html documentation shows that it DOES work on many tags that it doesn't. If you click styles on the td tag it shows hover there: http://msdn2.microsoft.com/en-us/library/ms535903.aspx

 

Anyway, you might want to make sure that you are echoing that in the right place :)

<td
<?php
echo " onmouseover=\"this.className='hover'\">$counter</td>\n";
?>

 

Same as thorpe's, but I have always used mini quotes on the inside, it probably works both ways, though.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.