SVG – Learning by Coding
1: <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2: <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
3: "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" [
4: <!ATTLIST svg xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink">
5: ]>
6:
7: <!-- SVG - Learning by Coding - http://www.datenverdrahten.de/svglbc/ -->
8: <!-- Author: Dr. Thomas Meinike 07/03 - thomas@handmadecode.de -->
9:
10: <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
11:
12: <title>SVG - Learning by Coding</title>
13: <desc>SVG-Spezifikation in Beispielen</desc>
14:
15: <text x="20" y="30" style="fill: #000; font-size: 24px">
16: Zoomen und Verschieben (de)aktivieren [zoomAndPan]
17: </text>
18:
19: <circle cx="100" cy="90" r="30" style="fill: #FF0; stroke: #00C"/>
20:
21: <text x="30" y="160" style="fill: #000">
22: zoomAndPan kann die Werte magnify (=Standard) und disable annehmen.
23: </text>
24:
25: <a xlink:href="" cursor="pointer" onclick="return false">
26: <text x="30" y="180" style="fill: #F00"
27: onclick="svgDocument.rootElement.setAttribute('zoomAndPan','disable')">
28: zoomAndPan auf disable setzen ...
29: <set attributeName="fill" attributeType="CSS" to="#00C" begin="mouseover"/>
30: <set attributeName="fill" attributeType="CSS" to="#F00" begin="mouseout"/>
31: </text>
32: </a>
33:
34: <a xlink:href="" cursor="pointer" onclick="return false">
35: <text x="30" y="200" style="fill: #F00"
36: onclick="svgDocument.rootElement.setAttribute('zoomAndPan','magnify')">
37: zoomAndPan auf magnify setzen ...
38: <set attributeName="fill" attributeType="CSS" to="#00C" begin="mouseover"/>
39: <set attributeName="fill" attributeType="CSS" to="#F00" begin="mouseout"/>
40: </text>
41: </a>
42:
43: </svg>
[zum Anfang]