/    Sign up×
Community /Pin to ProfileBookmark

Problem at table mouse over effect

Hello,

I wrote this code to add special effect on mouse over…

here is the code:
css

[CODE].dataTableRow { background-color: FFFFFF; }
.dataTableRowOver { background-color: #F0F1F1; cursor: pointer; cursor: hand; }[/CODE]

js

[CODE]function rowOverEffect(object) {
if (object.className == ‘dataTableRow’) object.className = ‘dataTableRowOver’;
}

function rowOutEffect(object) {
if (object.className == ‘dataTableRowOver’) object.className = ‘dataTableRow’;
}[/CODE]

html

[CODE]<table>
<tr class=”dataTableRow” onMouseOver=”rowOverEffect(this)” onMouseOut=”rowOutEffect(this)”>
<td>Something</td>
</tr>
</table>[/CODE]

but nothing happends…

can anyone help me out?

thank you!

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@Logic_AliMay 17.2007 — 
[CODE].dataTableRow { background-color: FFFFFF; }
.dataTableRowOver { background-color: #F0F1F1; cursor: pointer; cursor: hand; }[/CODE]

[/QUOTE]
Invalid CSS I would say.
Copy linkTweet thisAlerts:
@felgallMay 17.2007 — Missing # on the first colour in case you were wondering what makes it invalid.
×

Success!

Help @apog spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...