Ahoj,
pokouším se změnit po přejetí/vstupu myši css vlastnost části obrázku(SVG), ale něco přehlížím:
zde je blok v SVG :::
<g id="deckel">
<linearGradient id="deckel-contour" gradientUnits="userSpaceOnUse" x1="372.7979" y1="221.1313" x2="469.3115" y2="221.1313">
<stop offset="0" style="stop-color:#FFFFFF"/>
<stop offset="1" style="stop-color:#C9BDAD"/>
</linearGradient>
<polygon fill="url(#deckel-contour)" stroke="#231F20" stroke-width="0.2" stroke-linecap="round" stroke-linejoin="bevel" points="
372.798,221.066 395.241,205.196 469.312,221.028 447.192,237.067 "/>
</g>
zde JS/mootools :::
<script src="mootools-core.js" type="text/javascript"></script>
<script type="text/javascript">
<![CDATA[
function load() {
var deckel;
deckel = document.getElementById("deckel-contour");
}
var mouseEnterFunctionDeckel = function(){
$('deckel-contour').setStyle('stroke', 'red');
//alert('THIS IS TEST');
}
window.addEvent('domready', function() {
$('decke-contourl').addEvent('mouseenter', mouseEnterFunctionDeckel);
});
]]>
</script>
pokud odkomentuju alert - tak on sám fachá