Here is a description of the SVG file:
[HTML]<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.1"
baseProfile="full"
id="SVG" image-rendering="optimizeSpeed" width="612" height="800"
viewBox="0 0 612 792" overflow="visible" enable-background="new 0 0 612 792" onload="initSVG()">
<rect id="Planta" x="-70.0" y="60.5" fill="#FFFFFF" width="710" height="655" onclick="onClick(evt)"/>
<g id="Group">
<g id="SmallGroup" onmouseover="ChangeColor(evt)" fill="lightgrey">
<rect id="idRect" name="FigureName" x="408" y="154" fill="silver" width="97" height="5"/>
</g>
</g>
</svg>
[/HTML]
And here is a description of javascript file:
- function ChangeColor(evt)
-
{
-
var elementId = evt.target.getId();
-
var figure = document.embeds['SVG'].getSVGDocument().getElementById(elementId);
-
figure.setAttribute("opacity",0.25);
-
-
}