惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
I
InfoQ
阮一峰的网络日志
阮一峰的网络日志
有赞技术团队
有赞技术团队
Vercel News
Vercel News
Engineering at Meta
Engineering at Meta
Hugging Face - Blog
Hugging Face - Blog
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
aimingoo的专栏
aimingoo的专栏
罗磊的独立博客
Blog — PlanetScale
Blog — PlanetScale
Microsoft Security Blog
Microsoft Security Blog
B
Blog RSS Feed
H
Help Net Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
V
Visual Studio Blog
B
Blog
MongoDB | Blog
MongoDB | Blog
T
The Blog of Author Tim Ferriss
L
LangChain Blog
D
Docker

博客园 - Avlee

ArcGIS Server Manager 登录失败的解决方法 利用ArcSDE C API读取ArcSDE Raster数据 倡议以赞助的形式成立一个博客园的开发团队(博客园商业化尚早) 在WebGIS中试用Microsoft Silverlight有感 The MSVC project of the cairo library(version 1.4.6) WebGIS团队启用二级域名 Building the cairo graphic library using msvc Adobe 将停止对Adobe SVG Viewer的支持! SVG Authoring Guidelines[转] ArrayList.ToArray(Type) Or ArrayList.CopyTo(Array) Using Delegates with Data Readers to Control DAL Responsibility[转] 关于旧mdl程序向V8升级的问题 有了Flash和SVG,Adobe还想做什么呢? 基于Geomedia Professional平台的GIS应用开发(一) 根据权限创建页面上的功能按钮的一种简单有效的方法 如何让英文版的Adobe SVG Viewer显示中文文字 过年了,再忙也要回家...... 申请加入 “WebGIS” 团队 WebGIS团队刚刚成立
Adobe SVG Viewer 6.0 中自定义右键菜单
Avlee · 2005-03-15 · via 博客园 - Avlee

<?xml version="1.0" encoding="UTF-16"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN"
"http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd" [
    <!ENTITY st0 "display:none;fill:none;stroke:#AD0012;stroke-width:2;"
>
]>
<svg xml:space="preserve" width="400" height="400">
    
<desc>draw view</desc>
    
<defs>
        
<menu id="myContextMenu">
                
<header>Custom Menu</header>
                
<item onactivate="showHelp()">帮助</item>
                
<item id="About" action="About">关于 Adobe SVG Viewer</item>
            
</menu>
    
</defs>
<script><![CDATA[
        var newMenuRoot = parseXML( printNode( document.getElementById( 'myContextMenu' ) ), contextMenu );
        contextMenu.replaceChild( newMenuRoot.firstChild, contextMenu.firstChild );
        function showHelper()
       {
            alert('help');
       }
    
]]></script>

<rect x="0" y="0" width="400" height="400" rx="10" ry="10" style="fill:none;stroke:#006300;stroke-width:1;"/>
<text x="100" y="100" style="font-family:'SimHei',sans-serif;pointer-events:none">自定义右键菜单</text>
</svg>

发表于 2005-03-15 13:04  Avlee  阅读(3367)  评论(5)    收藏  举报