Adapt highlighting of objects: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 2: Line 2:
<div id="myinfobox"  
<div id="myinfobox"  
     style="
     style="
         display:block;
         display:none;
         top:0px;
         top:0px;
         left:0px;
         left:0px;
Line 8: Line 8:
         background-color:#ffff88;
         background-color:#ffff88;
         padding:10px;
         padding:10px;
         //width:50px;
         /*width:50px;*/
         // Cross-browser opacity:
         /* Cross-browser opacity: */
         -ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=50)';  
         -ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=50)';  
         filter: alpha(opacity=50);
         filter: alpha(opacity=50);
         opacity:.5;
         opacity:.5;
     "
     "
>fsfsfsfsfs</div>  
></div>  
</html>
</html>
<jsxgraph width="600" height="600">
<jsxgraph width="600" height="600">
Line 25: Line 25:


var c = brd.create('circle',[p2,p3]);
var c = brd.create('circle',[p2,p3]);
/*
var infobox = document.getElementById('myinfobox');
var infobox = document.getElementById('myinfobox');
JXG.Line.prototype.highlight = function(){
JXG.Line.prototype.highlight = function(){
Line 45: Line 44:
     infobox.style.display = 'none';
     infobox.style.display = 'none';
}
}
*/
</jsxgraph>
</jsxgraph>



Revision as of 16:19, 18 December 2009

The JavaScript code