⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 figure10-13.svg

📁 SVG资料。这是一个SVG资料
💻 SVG
字号:
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/SVG/DTD/svg10.dtd">
<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" onload="Init(evt);">
  <script type="text/ecmascript" xlink:href="RemoveWhiteSpace.js"/>
  <script type="text/ecmascript">
  <![CDATA[
    function Init(evt)
    {
       RemoveWhiteSpaceChildNodesOf(evt.target.ownerDocument.documentElement);
    }
    function Highlight(evt)
    {
       evt.target.setAttribute("opacity", "1.0");
    }
    function Unhighlight(evt)
    {
       evt.target.setAttribute("opacity", "0.4");
    }
    function ChangeColor(evt)
    {
       if (evt.type == "mousedown")
          evt.target.setAttribute("fill", "black");
       else if (evt.type == "mouseup")
          evt.target.setAttribute("fill", "yellowgreen");
    }
   function Magical(evt)
   {
   if (evt.type == "mouseover")
      evt.target.nextSibling.nextSibling.setAttribute("visibility", "hidden");
   else
      evt.target.nextSibling.nextSibling.removeAttribute("visibility");
   evt.stopPropagation ();
   }
function Mutate(evt)
{
   var elem = evt.target;

   elem.setAttribute("display", "none"); // hide the displayed element ..
   if (elem.nodeName == "rect") // rectangle was displayed ..
      elem.nextSibling.removeAttribute("display"); // .. show ellipse
   else                       // ellipse was be displayed ..
      elem.previousSibling.removeAttribute("display");  // show rectangle
}
function ClickCounter(evt)
{
   var clickText = evt.target.parentNode.parentNode.lastChild.firstChild;
   clickText.nodeValue = evt.detail + ". click"
}

  ]]>
  </script>
  <g onmouseover="Highlight(evt);" onmouseout="Unhighlight(evt);">
    <rect x="10"  y="100" width="90" height="40" fill="blue" opacity="0.4" />
    <rect x="110" y="100" width="90" height="40" fill="green" opacity="0.4" 
         onmouseover="Magical(evt);" onmouseout="Magical(evt);"/>
 <rect x="210" y="100" width="90" height="40" fill="yellowgreen" opacity="0.4" 
          onmousedown="ChangeColor(evt);" onmouseup="ChangeColor(evt);"/>
<rect x="310" y="100" width="90" height="40" fill="orange" opacity="0.4"
         onclick="Mutate(evt);" />
<ellipse cx="355" cy="120" rx="45" ry="20" fill="orange" display="none"
         onclick="Mutate(evt);" />
   <rect x="410" y="100" width="90" height="40" fill="red" opacity="0.4"
         onclick="ClickCounter(evt);"/>
  </g>
  <text x="55"  y="160" text-anchor="middle">highlight</text>
  <text x="155" y="160" text-anchor="middle">magical</text>
  <text x="255" y="160" text-anchor="middle">changing color</text>
  <text x="355" y="160" text-anchor="middle">mutate</text>
  <text x="455" y="160" text-anchor="middle">click</text>
</svg>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -