Adobe SVG Viewer 6.0 中自定义右键菜单<?xml version="1.0" encoding="UTF-16"?>
Adobe SVG Viewer 6.0 中自定义右键菜单
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN"
Adobe SVG Viewer 6.0 中自定义右键菜单"http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd" [
Adobe SVG Viewer 6.0 中自定义右键菜单    <!ENTITY st0 "display:none;fill:none;stroke:#AD0012;stroke-width:2;"
>
Adobe SVG Viewer 6.0 中自定义右键菜单]>
Adobe SVG Viewer 6.0 中自定义右键菜单
<svg xml:space="preserve" width="400" height="400">
Adobe SVG Viewer 6.0 中自定义右键菜单    
<desc>draw view</desc>
Adobe SVG Viewer 6.0 中自定义右键菜单    
<defs>
Adobe SVG Viewer 6.0 中自定义右键菜单        
<menu id="myContextMenu">
Adobe SVG Viewer 6.0 中自定义右键菜单                
<header>Custom Menu</header>
Adobe SVG Viewer 6.0 中自定义右键菜单                
<item onactivate="showHelp()">帮助Adobe SVG Viewer 6.0 中自定义右键菜单</item>
Adobe SVG Viewer 6.0 中自定义右键菜单                
<item id="About" action="About">关于 Adobe SVG ViewerAdobe SVG Viewer 6.0 中自定义右键菜单</item>
Adobe SVG Viewer 6.0 中自定义右键菜单            
</menu>
Adobe SVG Viewer 6.0 中自定义右键菜单    
</defs>
Adobe SVG Viewer 6.0 中自定义右键菜单
<script><![CDATA[
Adobe SVG Viewer 6.0 中自定义右键菜单        var newMenuRoot = parseXML( printNode( document.getElementById( 'myContextMenu' ) ), contextMenu );
Adobe SVG Viewer 6.0 中自定义右键菜单        contextMenu.replaceChild( newMenuRoot.firstChild, contextMenu.firstChild );
Adobe SVG Viewer 6.0 中自定义右键菜单        function showHelper()
Adobe SVG Viewer 6.0 中自定义右键菜单       {
Adobe SVG Viewer 6.0 中自定义右键菜单            alert('help');
Adobe SVG Viewer 6.0 中自定义右键菜单       }
Adobe SVG Viewer 6.0 中自定义右键菜单    
]]></script>
Adobe SVG Viewer 6.0 中自定义右键菜单
Adobe SVG Viewer 6.0 中自定义右键菜单
<rect x="0" y="0" width="400" height="400" rx="10" ry="10" style="fill:none;stroke:#006300;stroke-width:1;"/>
Adobe SVG Viewer 6.0 中自定义右键菜单
<text x="100" y="100" style="font-family:'SimHei',sans-serif;pointer-events:none">自定义右键菜单</text>
Adobe SVG Viewer 6.0 中自定义右键菜单
</svg>

相关文章:

  • 2022-12-23
  • 2022-02-12
  • 2021-11-15
  • 2021-05-23
  • 2021-09-07
  • 2021-12-20
  • 2022-01-20
猜你喜欢
  • 2021-06-27
  • 2021-08-05
相关资源
相似解决方案