SVG – Learning by Coding

[ save_disable.svg --> Grafik anzeigen ]

 1: <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
 2: <?AdobeSVGViewer save="disable"?>
 3: <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
 4:   "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" [
 5:   <!ATTLIST svg xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink">
 6: ]>
 7: 
 8: <!-- SVG Learning by Coding http://www.datenverdrahten.de/svglbc/ -->
 9: <!--    AuthorDrThomas Meinike 05/03 thomas@handmadecode.de     -->
10: 
11: <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
12: 
13:   <title>SVG Learning by Coding</title>
14:   <desc>SVG-Spezifikation in Beispielen</desc>
15: 
16:   <defs>
17: 
18:     <style type="text/css">
19:       <![CDATA[
20: 
21:       text.info1
22:       {
23:         fill#00C;
24:         font-familyArialHelveticasans-serif;
25:         font-size14px;
26:       }
27: 
28:       text.info2
29:       {
30:         fill#F00;
31:         font-family"Courier New"Couriermonospace;
32:         font-size18px;
33:         font-weightbold;
34:       }
35: 
36:       text.info3
37:       {
38:         fill#000;
39:         font-familyArialHelveticasans-serif;
40:         font-size14px;
41:       }
42: 
43:       line
44:       {
45:         stroke#F00;
46:         stroke-width5px;
47:       }
48: 			
49:       ]]>
50:     </style>
51: 
52:   </defs>
53: 
54:   <text x="30" y="30" style="fill: #000; font-size: 24px">
55:     Speichern im ASV verhindern</text>
56: 
57:   <text x="45" y="70" class="info1">
58:     Der Adobe SVG Viewer kennt eine spezielle Processing Instruction,</text>
59:   <text x="45" y="90" class="info1">
60:     um die Einträge zum Speichern im Kontextmenü abzuschalten:</text>
61:   <text x="45" y="120" class="info2">
62:     &#160;&#160;&lt;?AdobeSVGViewer save="disable"?&gt;</text>
63:   <text x="35" y="160" class="info3">
64:     In den anderen SVG-Beispielen wird diese Technik aber nicht verwendet ;-).</text>
65: 
66:   <line x1="35" y1="55" x2="35" y2="125"/>
67: 
68:   <text x="35" y="200" class="info1">
69:     Alternativ kann man auch den Inhalt des Kontextmenüs anpassensiehe:</text>
70: 
71:   <a xlink:href="../?doc=contextMenu" target="_top">
72:     <text x="35" y="220" class="info1">
73:       <set attributeName="fill" attributeType="CSS" to="#F00" begin="mouseover"/>
74:       <set attributeName="fill" attributeType="CSS" to="#00C" begin="mouseout"/>
75:        contextMenu.svg<tspan style="fill: #00C">.</tspan>
76:     </text>
77:   </a>
78: 
79: </svg>

[zum Anfang]