SVG – Learning by Coding

[ event-handler.svg --> Grafik anzeigen ]

 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: <!--    AuthorDrThomas Meinike 02/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:   <defs>
16: 
17:     <style type="text/css">
18:       <![CDATA[
19: 
20:       text.haupt
21:       {
22:         fill#F00;
23:         font-size18px;
24:       }
25: 
26:       text.unter
27:       {
28:         fill#00C;
29:         font-size14px;
30:       }
31: 
32:       ]]>
33:     </style>
34: 
35:   </defs>
36: 
37:   <text x="20" y="30" style="fill: #000; font-size: 24px">
38:     Event-Handler für die Reaktion auf Ereignisse</text>
39: 
40:   <text x="30" y="70" class="haupt">Grafikund Containerelemente</text>
41:   <text y="70" class="unter">
42:     <tspan x="30" dy="20">&#8250; onactivate</tspan>
43:     <tspan x="30" dy="20">&#8250; onclick</tspan>
44:     <tspan x="30" dy="20">&#8250; onfocusin</tspan>
45:     <tspan x="30" dy="20">&#8250; onfocusout</tspan>
46:     <tspan x="30" dy="20">&#8250; onload</tspan>
47:     <tspan x="30" dy="20">&#8250; onmousedown</tspan>
48:     <tspan x="30" dy="20">&#8250; onmouseup</tspan>
49:     <tspan x="30" dy="20">&#8250; onmouseover</tspan>
50:     <tspan x="30" dy="20">&#8250; onmouseout</tspan>
51:     <tspan x="30" dy="20">&#8250; onmousemove</tspan>
52:   </text>
53: 
54:   <text x="30" y="310" class="haupt">Dokument-Element</text>
55:   <text y="310" class="unter">
56:     <tspan x="30" dy="20">&#8250; onabort</tspan>
57:     <tspan x="30" dy="20">&#8250; onerror</tspan>
58:     <tspan x="30" dy="20">&#8250; onresize</tspan>
59:     <tspan x="30" dy="20">&#8250; onscroll</tspan>
60:     <tspan x="30" dy="20">&#8250; onunload</tspan>
61:     <tspan x="30" dy="20">&#8250; onzoom</tspan>
62:   </text>
63: 
64:   <text x="250" y="310" class="haupt">Animationselemente</text>
65:   <text y="310" class="unter">
66:     <tspan x="250" dy="20">&#8250; onbegin</tspan>
67:     <tspan x="250" dy="20">&#8250; onend</tspan>
68:     <tspan x="250" dy="20">&#8250; onrepeat</tspan>
69:   </text>
70: 
71: </svg>

[zum Anfang]