July 4, 200818 yr hey all, can someone please help me take the following out of the HTML and put work out what to put in an external stylesheet: <li class="pale1" onMouseOver="tooltip.show('Testing 123 <strong>Testing 123</strong>');" onmouseout="tooltip.hide();"><a href="http://www.google.com">123</a></li> I got the following in JavaScript, but its not working: getElementsByClassName('pale1').mouseOver(tooltip.show("TEST")).mouseOut(tooltip.hide()); any ideas?
July 4, 200818 yr Author sorry, found the solution now. Used jQuery: $('li.pale1').each( function () { $(this).mouseover( function () { tooltip.show("TEST"); }); $(this).mouseout(function(){ tooltip.hide() }); });
Create an account or sign in to comment