SVG – Learning by Coding

[ cursor.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 12/02 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

21: 
      {

22: 
        font-familyArialHelveticasans-serif;

23: 
        font-size18px;

24: 
        fill#F00;

25: 
      }

​26: 27: 
      ]]>

28: 
    </style>

​29: 30: 
  </defs>

​31: 32: 
  <text x="20" y="30" style="fill: #000; font-size: 24px">CSS-Eigenschaft cursor</text>

​33: 34: 
  <text x="30" y="60" style="cursor: auto">auto</text>

35: 
  <text x="30" y="85" style="cursor: crosshair">crosshair</text>

36: 
  <text x="30" y="110" style="cursor: default">default</text>

37: 
  <text x="30" y="135" style="cursor: pointer">pointer</text>

38: 
  <text x="30" y="160" style="cursor: move">move</text>

39: 
  <text x="30" y="185" style="cursor: e-resize">e-resize</text>

40: 
  <text x="30" y="210" style="cursor: ne-resize">ne-resize</text>

41: 
  <text x="30" y="235" style="cursor: nw-resize">nw-resize</text>

42: 
  <text x="30" y="260" style="cursor: n-resize">n-resize</text>

43: 
  <text x="30" y="285" style="cursor: se-resize">se-resize</text>

44: 
  <text x="30" y="310" style="cursor: sw-resize">sw-resize</text>

45: 
  <text x="30" y="335" style="cursor: s-resize">s-resize</text>

46: 
  <text x="30" y="360" style="cursor: w-resize">w-resize</text>

47: 
  <text x="30" y="385" style="cursor: text">text</text>

48: 
  <text x="30" y="410" style="cursor: wait">wait</text>

49: 
  <text x="30" y="435" style="cursor: help">help</text>

50: 
  <text x="30" y="460" style="cursor: url('extern.cur')">url('extern.cur')</text>

​51: 52: 
  <a xlink:href="http://www.w3.org/TR/SVG/interact.html#CursorElement" target="_top">

53: 
    <text x="30" y="500" style="fill: #00C; font-size: 14px">

54: 
      <set attributeName="fill" attributeType="CSS" to="#F00" begin="mouseover"/>

55: 
      <set attributeName="fill" attributeType="CSS" to="#00C" begin="mouseout"/>

56: 
      Informationen zum Element cursor

57: 
    </text>

58: 
  </a>

59: 
  <text x="30" y="520" style="fill: #000; font-size: 14px">

60: 
    Beispiel: &lt;cursor x="0" y="0" xlink:href="cursor.png"/&gt;</text>

​61: 62: 
</svg>

[zum Anfang]