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

推荐订阅源

Microsoft Security Blog
Microsoft Security Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
About on SuperTechFans
月光博客
月光博客
Jina AI
Jina AI
F
Fortinet All Blogs
博客园 - 聂微东
The Cloudflare Blog
美团技术团队
B
Blog RSS Feed
N
Netflix TechBlog - Medium
罗磊的独立博客
The GitHub Blog
The GitHub Blog
I
InfoQ
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Apple Machine Learning Research
Apple Machine Learning Research
H
Help Net Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
The Blog of Author Tim Ferriss
MyScale Blog
MyScale Blog
博客园 - 三生石上(FineUI控件)
宝玉的分享
宝玉的分享
阮一峰的网络日志
阮一峰的网络日志
V
V2EX

博客园 - 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)    收藏  举报