The Manhatten Project wrote:
Hi Ken/Christophe,
I actually did this in the end ..
Event.observe('mydiv', 'mouseover', function(e){
Element.setStyle('mydiv', { border: '1px solid red;' } ); });
Event.observe('mydiv', 'mouseout', function(e){
Element.setStyle('mydiv', { border: '0px solid red;' } ); });
I am sure it can be cleaned up ;) but it does work....
Christophe, I am a long time watcher of this list and I must say I am
amazed at the clarity and speed at which you post your answers - you
are a credit to any list. Thank you for this and all posts which help
me understand Prototype/SAU better !!
I will look into using the hover class directly as well.
In fact, do you have an example of using "pure" CSS?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---