Scripted SVG Home About us Contact info Vector graphics SVG Fills & Filters Products Price list CSharp translator Dyalog APL2000 Support CUSP CausewayPro RainPro Newleaf Helpstuf Leafhtm Tutorials Demos Climate Charts VML graphics SVG examples Carbon emissions Two timeseries Population pyramid Checkweigher Box & Whisker Wise Eels Bridge Scripted SVG Climate charts Free Stuff CSS Editor Publications Seminars Articles |
Causeway Graphical SystemsJavaScriptThis is just to show that we can hook JavaScript handlers into SVG graphics, although the JavaScript is rather more involved than the VML equivalent. This highlights the bars as the mouse passes over them, and when a bar is clicked it accumulates the total value into the heading. N.B. This has been updated for version-3 of the SVG viewer. The object model has been radically changed from version-2 where the bars will still light up on mouse-over but clicking on them will give you a JavaScript error. Firefox users will see the bar-edges light up, but the JavaScript to modify the subhead text has no effect at all! You can use View,Source on the SVG page in the Adobe viewer to see how the subheading is modified as the total is accumulated. Website maintained by adrian@causeway.co.uk Telephone: +44 (0) 1439 788413 |
|