OZONE Asylum
Forums
DHTML/Javascript
putting an event on object row
This page's ID:
30882
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I think you're using this but you've used the quotes also. try losing the quotes and see if that works. [code]<div style="background-color:white; width:100px; height:100px" onMouseover="this.style.backgroundColor='#E2E2E2'" onMouseout="this.style.backgroundColor='white'">This is a div</div> oTable = document.getElementById("tabela"); for (var i = 2; i < oTable.rows.length - 1; i++) { oRow = oTable.rows[i]; oRow.onmouseover = this.style.backgroundColor='#FEF7EA'; } [/code] but I'm not sure if it will work. I'm a noob, but I've played with enough scripts to know the quotes aren't needed unless you're doing it from within a page tag and not in your script
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »