Code: Select all
evt.target.setAttribute('stroke', 'red');
Code: Select all
evt.target.setAttribute('fill', 'red');
Thanks!
Code: Select all
evt.target.setAttribute('stroke', 'red');
Code: Select all
evt.target.setAttribute('fill', 'red');
Code: Select all
<text
xml:space="preserve"
style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#808080;fill-opacity:1;stroke:none;font-family:Sans"
x="2210.6606"
y="-9119.7529"
id="text3985"
sodipodi:linespacing="125%"
onmouseover="this.style.fill = 'red'"
onmouseout="this.style.stroke = 'red'"><tspan
id="tspan3987"
sodipodi:role="line"
x="2210.6606"
y="-9119.7529"
style="font-size:20px;fill:#808080">Esplora</tspan></text>
sovos wrote:Removing the tspan tag everything works fine.
How can I do that from Inkscape?