Topic: putting an event on object row (Page 1 of 1) |
|
---|---|
Neurotic (0) Inmate Newly admitted From: |
posted 02-26-2009 16:07
I'd like to do something like that: |
Nervous Wreck (II) Inmate From: Portland Oregon |
posted 02-26-2009 16:20
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'; }
|
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 02-26-2009 16:35
no, the quotes are necessary. |
Obsessive-Compulsive (I) Inmate From: |
posted 02-26-2009 18:18
I got this answer to my question and it worked, take a look: |
Nervous Wreck (II) Inmate From: |
posted 05-31-2011 11:10
Edit TP: spam removed
|