tags:

views:

24

answers:

0

Trying to reference the replaced element in order to change its style during a rollover, like this:

 , onRollOver: function(el) { el.getAncestor().style.backgroundPosition="bottom" }

I'm getting an error in the browser:

 el.getAncestor is not a function

This seems to follow the syntax of examples online. What am I doing wrong?