Thanks klaus, they are done well by javascript, and I see the javascript examples in the viewer download package, and make an other attempt. the script part is:
Code
<script type="text/javascript">
function krpano(){
return document.getElementById("krpanoSWFObject");}
function closespot(){
krpano.set("hotspot[hs1].visible","false");}
function openspot(){
krpano.set("hotspot[hs1].visible","true");}
</script>
the Html part is
Code
<body>
<script src="1.js"></script>
<div id="pano" style="width:100%; height:70%;">
<noscript><table style="width:100%;height:100%;"><tr style="valign:middle;"><td><div style="text-align:center;">ERROR:<br/><br/>Javascript not activated<br/><br/></div></td></tr></table></noscript>
<script>
embedpano({swf:"1.swf", xml:"1.xml", target:"pano"});
</script>
</div><br>
<span id="close" onClick="closespot()">Close spot1</span>
<span id="open" onClick="openspot()"> Open spot1</span>
</body>
Display More
when I click on them ,they all dont work, what's wrong! Thanks!