在与tour.xml同级目录下创建polyPosition.xml文件。
然后直接把polyPosition.xml插件引入tour.xml文件即可。
即在tour.xml中
polyPosition.xml插件代码如下:
initLimit();
set(limitVar, 0);
set(layer[showPolyPos].html, '');
set(hotspot[testspot].point[0].ath, ");
set(hotspot[testspot].point[0].atv, ");
set(hotspot[testspot].point[1].ath, ");
set(hotspot[testspot].point[1].atv, ");
set(hotspot[testspot].point[2].ath, ");
set(hotspot[testspot].point[2].atv, ");
set(hotspot[testspot].point[3].ath, ");
set(hotspot[testspot].point[3].atv, ");
set(hotspot[testspot].visible, false);
openurl(txt.html?codeString=_a_hotspot name=" style="hs_polygonal" moveidx=" galleryname=" οnclick="show_gallery(get(galleryname), get(moveidx));"_b_
_a_point ath="%1" atv="%2" /_b_
_a_point ath="%3" atv="%4" /_b_
_a_point ath="%5" atv="%6" /_b_
_a_point ath="%7" atv="%8" /_b_
_a_/hotspot_b_ , "_blank");
initLimit();
clearHtml();
inc(limitVar);
screentosphere(mouse.x, mouse.y, toh, tov);
if(limitVar EQ 1,
visibleFalse();
copy(myToh_1, toh);
copy(myTov_1, tov);
txtadd(layer[showPolyPos].html, calc(layer[showPolyPos].html+toh+', '+tov+'
'));
set(hotspot[testspot].point[0].ath, get(toh));
set(hotspot[testspot].point[0].atv, get(tov));
);
if(limitVar EQ 2,
copy(myToh_2, toh);
copy(myTov_2, tov);
txtadd(layer[showPolyPos].html, calc(toh+', '+tov+'
'));
set(hotspot[testspot].point[1].ath, get(toh));
set(hotspot[testspot].point[1].atv, get(tov));
);
if(limitVar EQ 3,
copy(myToh_3, toh);
copy(myTov_3, tov);
txtadd(layer[showPolyPos].html, calc(toh+', '+tov+'
'));
set(hotspot[testspot].point[2].ath, get(toh));
set(hotspot[testspot].point[2].atv, get(tov));
);
if(limitVar EQ 4,
copy(myToh_4, toh);
copy(myTov_4, tov);
txtadd(layer[showPolyPos].html, calc(toh+', '+tov+'
'));
set(hotspot[testspot].point[3].ath, get(toh));
set(hotspot[testspot].point[3].atv, get(tov));
set(hotspot[testspot].visible, true);
);
if(limitVar GE 4,
polygonal(get(myToh_1),get(myTov_1),get(myToh_2),get(myTov_2),get(myToh_3),get(myTov_3),get(myToh_4),get(myTov_4));
);
同样的,在与tour.xml同级目录下再创建一个txt.html文件,代码如下:
CodePage