krpano里面有时候需要一个热点显示文字。现在学会两种显示方式:
1 鼠标移入显示
<hotspot name="h3_x" onhover="showtext(提示文字,STYLE12);" onclick="openurl('http://www.ibixue.com',_blank)" alpha="0" >
<point ath="-12" atv="-17" />
<point ath="6" atv="-17" />
<point ath="6" atv="10" />
<point ath="-12" atv="10" />
</hotspot>
2 一直显示文字
<hotspot name="spot3" style="your_hotspotstyle" ath="-30.441" atv="14.181" tooltip="tooltip 1"/>
<hotspot name="spot4" style="your_hotspotstyle" ath="-48.224" atv="12.630" tooltip="tooltip 2"/>
<style name="your_hotspotstyle" url="images/d.png" scale="0.5" edge="top" oy="0" distorted="false" onloaded="add_all_the_time_tooltip();" />
<action name="add_all_the_time_tooltip">
txtadd(tooltipname, 'tooltip_', get(name));
addplugin(get(tooltipname)); txtadd(plugin[get(tooltipnam