62,242
社区成员




<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" width="526" height="233" xmlns:xlink="http://www.w3.org/1999/xlink">
<script type="text/javascript">
<![CDATA[
function show(evt) {
evt.target.textContent = evt.target.textContent == "关闭声音"?"开启声音":"关闭声音"
}
]]>
</script>
<g id="rect1">
<rect id="rr" x="50" y="50" width="100" height="50" onclick="evt.target.setAttribute('fill', 'blue')"/>
<text x="100" y="100" id="tt" onclick="show(evt)">
<a id="a238">关闭声音</a>
</text>
</g>
</svg>
//我不知道什么SVG、我只知道 点击关闭声音变成开启声音
//函数里面放这个
var str=document.getElementById('a238').innerHTML;
if(str=="关闭声音")
str="开启声音";
else
str="关闭声音";