Krpano制作补天补地logo
复制下面代码保存到skin里面为nadir-logo.xml
<krpano>
<!-- startup viewing direction and angle -->
<view hlookat="0" vlookat="55" fov="110" />
<!-...
Krpano添加自动旋转
1.scene外添加
<autorotate enabled="true"
waittime="5.0"
speed="-3.0"
horizon="0.0"
tofov="120.0"
/>
2.在startup添加
<action name="startup">
if(star...
angular 1.x directive
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="angular.min.js"></scrip...
js实现全屏
function fullScreen(el) {
var rfs = el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen || el.msRequestFullScreen,
wscript;
if(type...
krpano修改默认按钮
<krpano>
<!-- krpano 1.19.pr9 - Virtual Tour Skin -->
<!-- skin settings (can be overridden in the tour.xml) -->
<skin_settings maps="false"
...
krpano隐藏导航条
搜索并设为set(layer[skin_layer].visible, false);
两个箭头隐藏改为
<!-- previous/next scene buttons for the hidden skin mode -->
<layer name="skin_btn_prev_fs"...
krpano制作snow
复制plugins的snow插件,将snow的xml放到同级:
snow.xml:
<krpano>
<!-- the snow plugin -->
<plugin name="snow" zorder="1"
url="%SWFPATH%/plugins/...
krpano添加跳转链接
<action name="nextscene">
add(newsceneindex, scene[get(xml.scene)]...
krpano拖拽图层和热点
拖拽热点:
<action name="draghotspot">
spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery, 'l');
sub(drag_adjustx, mouse.stagex, hotspotcenterx);
sub...
krpano设置文字
添加文字热点,调用方法:
<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" onc...