onmouseover in tables (rows)

  • Unknown's avatar

    Hello,
    i have a code for one table with onmouseover like this:
    <table>

    <td><span style=”font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;”>1</span></td>
    <td style=”font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;”>À BEIRA MAR TE CONHECI</td>
    </tr>
    </table>
    I need change color onmouseover in every row…why is not possible?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Because this command won’t do anything by itself: it goes together with a javascript script (and on wordpress.com we’re not allowed to use javascript).

    You can create hover effects without javascript, i.e. using CSS only, but this requires the Custom Design upgrade.

    By the way, to change the font (or anything else) of the content of a cell, you don’t add span tags, you add the style attribute to the opening td tag (as in your second cell). And if you want the same change on all the cells, you don’t even add it to the td tags, you add it once in the opening table tag.

  • The topic ‘onmouseover in tables (rows)’ is closed to new replies.