以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 SVG/GML/VRML/X3D/XAML 』  (http://bbs.xml.org.cn/list.asp?boardid=21)
----  [求助]如何在SVG中做一个链接到HTML网页的链接文字和矩形?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=21&rootid=&id=19745)


--  作者:xbit
--  发布时间:6/19/2005 3:10:00 AM

--  [求助]如何在SVG中做一个链接到HTML网页的链接文字和矩形?
请教:如何在SVG中做一个链接到HTML网页的链接文字和矩形?
比如在svg中做一个矩形,点击就进入另一个网页
--  作者:犬神狼
--  发布时间:6/19/2005 5:55:00 PM

--  
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
  "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">

<svg width="100%" height="100%"
     xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink">

<g transform="translate(100,50)">
  <text font-size="24" color="black">
     Click on any ellipse:
  </text>
</g>

<g transform="translate(100,100)">
  <rect x="0" y="0" width="200" height="200"
        fill="none" stroke="blue"  stroke-width="4"/>

  <a xlink:href="http://localhost:8080/jsp-examples/checkbox/checkresult.jsp">
    <circle fill="red" cx="0" cy="0"
             r="3">
  <set begin="mouseover" end="mouseout"
    attributeName="fill" from="#FF0000" to="#FFFF00"/>
     </circle>
  </a>

  <a xlink:href="http://localhost:8080">
    <ellipse fill="green" cx="200" cy="0"
             rx="50" ry="25"/>
  </a>

  <a xlink:href="http://localhost:8080">
    <ellipse fill="blue" cx="200" cy="200"
             rx="50" ry="25"/>
  </a>

  <a xlink:href="http://localhost:8080">
    <ellipse fill="yellow" cx="0" cy="200"
             rx="50" ry="25"/>
  </a>
</g>
</svg>


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
31.250ms