<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="500" height="70">
<a xlink:href="#" id="arect1" opacity="1"
onmouseover="setAttribute('style', 'opacity: 0.5;');"
onmouseout="setAttribute('style', 'opacity: 1;');" >
<rect id="rect1" x="50" y="10"
width="50" height="50" fill="blue"
onmouseover="evt.target.setAttribute('fill','red');"
onmouseout="evt.target.setAttribute('fill','blue');"/>
</a>
<a xlink:href="#" id="arect2" opacity="1"
onmouseover="setAttribute('style', 'opacity: 0.5;');"
onmouseout="setAttribute('style', 'opacity: 1;');" >
<rect id="rect2" x="150" y="10"
width="50" height="50" fill="blue"
onmouseover="evt.target.setAttribute('fill','red');"
onmouseout="evt.target.setAttribute('fill','blue');"/>
</a>
<a xlink:href="#" id="arect3" opacity="1"
onmouseover="setAttribute('style', 'opacity: 0.5;');"
onmouseout="setAttribute('style', 'opacity: 1;');" >
<rect id="rect3" x="250" y="10"
width="50" height="50" fill="blue"
onmouseover="evt.target.setAttribute('fill','red');"
onmouseout="evt.target.setAttribute('fill','blue');"/>
</a>
<a xlink:href="#" id="arect4" opacity="1"
onmouseover="setAttribute('style', 'opacity: 0.5;');"
onmouseout="setAttribute('style', 'opacity: 1;');" >
<rect id="rect4" x="350" y="10"
width="50" height="50" fill="blue"
onmouseover="evt.target.setAttribute('fill','red');"
onmouseout="evt.target.setAttribute('fill','blue');"/>
</a>
<a xlink:href="#" id="arect5" opacity="1"
onmouseover="setAttribute('style', 'opacity: 0.5;');"
onmouseout="setAttribute('style', 'opacity: 1;');" >
<rect id="rect5" x="450" y="10"
width="50" height="50" fill="blue"
onmouseover="evt.target.setAttribute('fill','red');"
onmouseout="evt.target.setAttribute('fill','blue');"/>
</a>
</svg>