Howto talk:Extend the Canvas SVG module

From FlightGear wiki
Jump to navigation Jump to search

scripting and DOM events

<rect x="10" y="10" width="100" height="75"
      style="stroke: #000000; fill: #eeeeee;"
      onmouseover="this.style.stroke = '#ff0000'; this.style['stroke-width'] = 5;"
       onmouseout="this.style.stroke = '#000000'; this.style['stroke-width'] = 1;"
/>