| | |
Changing class name in onMouseOver
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Feb 2005
Posts: 1
Reputation:
Solved Threads: 0
Hi,
I have an HTML table which has OnMouseOut events on rows for hiliting and selecting alternate rows. Each alternate rows uses [onMouseOut="this.className='BrownRow'"] to hilite alternate rows. As I filietr rows based on some criteria, I want to change the className for onMouseOut where I use the following script line while looping thru rows -
row.attributes.getNamedItem("onMouseOut").value = "this.className='BrownRow'";
Though this seemingly sets the value, the effect on onMouseOver does not take efect. Can someone suggest why and what could be the solution?
I have an HTML table which has OnMouseOut events on rows for hiliting and selecting alternate rows. Each alternate rows uses [onMouseOut="this.className='BrownRow'"] to hilite alternate rows. As I filietr rows based on some criteria, I want to change the className for onMouseOut where I use the following script line while looping thru rows -
row.attributes.getNamedItem("onMouseOut").value = "this.className='BrownRow'";
Though this seemingly sets the value, the effect on onMouseOver does not take efect. Can someone suggest why and what could be the solution?
![]() |
Similar Threads
- toggle class name on click? (JavaScript / DHTML / AJAX)
- How to : Make a class globally accessible to other classes? (C#)
- Want to change color on click!? (HTML and CSS)
- how to structue my text game? (Python)
- document.getElementById problem (JavaScript / DHTML / AJAX)
- Need more help with "if" (PHP)
- Stack using a linear linked list of arrays (C)
- Which Cpu is better? (Motherboards, CPUs and RAM)
Other Threads in the HTML and CSS Forum
- Previous Thread: Wiki !
- Next Thread: Homepage Help
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 xml xsl





