Difference between revisions of "Adapt highlighting of objects"
From JSXGraph Wiki
Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||
Line 29: | Line 29: | ||
JXG.Line.prototype.highlight = function(){ | JXG.Line.prototype.highlight = function(){ | ||
infobox.innerHTML = this.board.mousePosAbs.toString(); | infobox.innerHTML = this.board.mousePosAbs.toString(); | ||
− | infobox.style.left = (this.board. | + | infobox.style.left = (this.board.mousePosRel[0]+20)+'px'; |
− | infobox.style.top = (this.board. | + | infobox.style.top = (this.board.mousePosRel[1]-20)+'px'; |
infobox.style.display = 'block'; | infobox.style.display = 'block'; | ||
} | } | ||
JXG.Line.prototype.noHighlight = function(){ | JXG.Line.prototype.noHighlight = function(){ | ||
− | infobox.style.display = ' | + | infobox.style.display = 'none'; |
} | } | ||
c.highlight = function(){ | c.highlight = function(){ |
Revision as of 18:44, 18 December 2009