Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Are you looking to add CSS to the page? Or parse CSS for use in your JavaScript application? Commented Jul 6, 2012 at 5:47
  • I'm guessing you're looking for something like document.getElementById('element_id').onMouseOver(some function) Commented Jul 6, 2012 at 5:48
  • See developer.mozilla.org/en/DOM/element.onmouseover Commented Jul 6, 2012 at 5:50
  • @Brad i want to include the css hover for the functions in the javascript. for example suppose if i want to include the css in the function "drawSegmentLabel: function(canvas, context, i, isSelected)" so that the value changed when it is hovered. Thanks in advance. Commented Jul 6, 2012 at 5:57
  • possible duplicate of How do you add CSS with Javascript? Commented Jul 6, 2012 at 7:04