function fullScreen(el) {
var rfs = el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen || el.msRequestFullScreen,
wscript;
if(typeof rfs != "undefined" && rfs) {
rfs.call(el);
return;
}
if(typeo...阅读全文>>
<krpano>
<!-- krpano 1.19.pr9 - Virtual Tour Skin -->
<!-- skin settings (can be overridden in the tour.xml) -->
<skin_settings maps="false"
maps_type="google"
maps_bing_api_key=""
maps_google_api_key=""
...阅读全文>>
搜索并设为set(layer[skin_layer].visible, false);
两个箭头隐藏改为
<!-- previous/next scene buttons for the hidden skin mode -->
<layer name="skin_btn_prev_fs" keep="true" type="container" visible="false" align="lefttop" x="-50" width="40" height="100%" bgcapture="true" alpha="0.25" ...阅读全文>>
复制plugins的snow插件,将snow的xml放到同级:
snow.xml:
<krpano>
<!-- the snow plugin -->
<plugin name="snow" zorder="1"
url="%SWFPATH%/plugins/snow.swf"
alturl="%SWFPATH%/plugins/snow.js"
floor="0.7"
/>
<action name="defaultsno...阅读全文>>
<action name="nextscene">
add(newsceneindex, scene[get(xml.scene)].index, 1);
if(newsceneindex LT scene.count, loadscene...阅读全文>>
拖拽热点:
<action name="draghotspot">
spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery, 'l');
sub(drag_adjustx, mouse.stagex, hotspotcenterx);
sub(drag_adjusty, mouse.stagey, hotspotcentery);
asyncloop(pressed,
sub(dx, mouse.stagex, drag_adjustx);
sub(dy, mouse.stage...阅读全文>>
添加文字热点,调用方法:
<hotspot name="spot1" url="animatedhotspot_white.png" onloaded="do_crop_animation(64,64, 60);add_all_the_time_tooltip_for_VR()" ath="-15" atv="-12" onclick="loadscene(get(linkedscene))" text="自定义文字"/>
添加方法secene外
<action name="add_all_the_time_to...阅读全文>>
拖拽或者moveTo:
<action name="control_startup" autorun="onstart">
set(control.mouse, moveto);
set(control.touch, moveto);
</action>
先要改成drag就是将moveto改成drag阅读全文>>
首先讲examples\compass的指南针复制到根目录,然后两种方式,第一种复制到secene外面:
<!-- 表盘不动 表针动 -->
<layer name="compass1" url="compass_bg.png" keep="true" align="lefttop" x="10" y="10" children="false" scalechildren="true" destscale="1.0" onclick="switch(destscale,1.0,0.5);tween(scale,get(destscale));">
...阅读全文>>
scene外面:
<action name="bgsnd_action" autorun="onstart">
playsound(bgsnd, 'http://fs.open.kugou.com/299ee8fc00a480e899d180bb715a6231/59c10d94/G009/M0A/09/05/qYYBAFUJvZiAXUb2AD6652iMRH8210.mp3', 0);
</action>
<plugin name="soundinterface"
url.flash="%SWFP...阅读全文>>