Mootools - Get a element's hover CSS ??
Posted: Tue Feb 02, 2010 11:26 am
I'm trying to get the CSS information for a given element's HOVER.
So I have tried this:
However, this does not work. Can anyone point me in the right direction? I'm not trying to alter the hover, rewrite it, or anything. I just want to know what the CSS properties is for an anchor's hover is on the page.
PS: when I say it doesn't work, i get the message "Error: $(document.body).getElement("a:hover") is null"
So I have tried this:
Code: Select all
var anchor_hover_link_info = $(document.body).getElement("a:hover").getStyles('font-size', 'text-decoration', 'color', 'padding', 'margin');
PS: when I say it doesn't work, i get the message "Error: $(document.body).getElement("a:hover") is null"