3
I want to identify what kind of element it is by going through an element. I’m doing the following example:
window.onmouseover = function(){ mouseOver(e)};
function mouseOver(e) {
if (e.nodeName === "DIV"){
alert("it's a div");
}
}
example: http://jsfiddle.net/e5msph9x/
Thanks @Die, is it possible instead of appearing an Alert appear a small div with css styles over the element? example: http://jsfiddle.net/e5msph9x/3/ This is then used in a graph and div are a circle.
– akm
@akm when you say over, you mean over or over but not over? You know you can do that with CSS too... http://answall.com/a/64939/129
– Sergio
Label this genus, http://www.d3noob.org/2013/01/adding-tooltips-to-d3js-graph.html, slightly above the circle.
– akm
@akm thus? -> http://jsfiddle.net/j8znfc1m/
– Sergio
Thank you @Rgio
– akm