热门 krpano设置文字

时间:2017-9-19   作者:lininn   分类: 随笔   热度:4404°    
时间:2017-9-19   分类: 随笔    热度:4404  
添加文字热点,调用方法: <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...

阅读全文>>

热门 krpano 添加指南针?

时间:2017-9-19   作者:lininn   分类: 随笔   热度:2654°    
时间:2017-9-19   分类: 随笔    热度:2654  
首先讲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));"> ...

阅读全文>>

热门 krpano 添加背景音乐?

时间:2017-9-19   作者:lininn   分类: 随笔   热度:2897°    
时间:2017-9-19   分类: 随笔    热度:2897  
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...

阅读全文>>

热门 Krpano添加热点图

时间:2017-9-19   作者:lininn   分类: 随笔   热度:3816°    
时间:2017-9-19   分类: 随笔    热度:3816  
在scene外面 <action name="do_crop_animation"> <!-- 为热点注册属性 --> registerattribute(xframes, calc((imagewidth / %1) BOR 0)); registerattribute(yframes, calc((imageheight / %2) BOR 0)); registerattribute(frames, calc(xframes * yframes)); registerattribute(frame, 0); set(...

阅读全文>>

热门 在个别场景中实现小行星

时间:2017-9-19   作者:lininn   分类: 随笔   热度:2136°    
时间:2017-9-19   分类: 随笔    热度:2136  
然后在tour.xml的scene标签外面书写: <events name="littleplanetintro_control" keep="true" onnewpano=" if(scene[get(xml.scene)].index == 0 OR scene[get(xml.scene)].index == 4, skin_setup_littleplanetintro() )" /> 第0个场景或者第4个场景实现小行星; 或者littleplanetintro="true" ...

阅读全文>>

热门 node创建流

时间:2017-9-8   作者:lininn   分类: node   热度:2036°    
时间:2017-9-8   分类: node    热度:2036  
var fs = require("fs"); var data = ''; // 创建可读流 var readerStream = fs.createReadStream('input.txt'); // 设置编码为 utf8。 readerStream.setEncoding('UTF8'); // 处理流事件 --> data, end, and error readerStream.on('data', function(chunk) { data += chunk; }); readerStream.on('end',function(...

阅读全文>>

热门 node 写入流

时间:2017-9-8   作者:lininn   分类: node   热度:2037°    
时间:2017-9-8   分类: node    热度:2037  
var fs = require("fs"); var data = '12121'; // 创建一个可以写入的流,写入到文件 output.txt 中 var writerStream = fs.createWriteStream('output.txt'); // 使用 utf8 编码写入数据 writerStream.write(data,'UTF8'); // 标记文件末尾 writerStream.end(); // 处理流事件 --> data, end, and error writerStream.on('finish', functio...

阅读全文>>

热门 node 压缩解压缩

时间:2017-9-8   作者:lininn   分类: node   热度:2092°    
时间:2017-9-8   分类: node    热度:2092  
var fs=require("fs"); var zlib=require("zlib"); // fs.createReadStream("1.txt").pipe(zlib.createGzip()).pipe(fs.createWriteStream("1.txt.gz"));//压缩 fs.createReadStream("1.txt.gz").pipe(zlib.createGunzip()).pipe(fs.createWriteStream("1.txt"));//解压 console.log("ok");

阅读全文>>

热门 跨静态页面传递json数据

时间:2017-9-5   作者:lininn   分类: Html   热度:3003°    
时间:2017-9-5   分类: Html    热度:3003  
今天又遇到了需要跨静态页面间传递json数据的方法,总结总结,都有其优缺点, 1.利用cookie传值的方法:(注意有缺点,当存储数据比较多的时候就可能出现丢失,取得的cookie为空,所以提前估量数据量) function setCookie(c_name, value, expiredays) { var exdate = new Date() ; exdate.setDate(exdate.getDate() + expiredays); document.cookie = c_name + "=" + escape(value) ...

阅读全文>>

返回顶部    首页    手机版本    后花园   会员注册   
版权所有:覆手为雨    站长: lininn