嘉兴的信息公司网站,wordpress连接mysql拒绝,郑州网络营销推广,设计欣赏心得体会一、修改krpano端口
.\tour_testingserver -port8085 #xff0c;修改端口#xff0c;指定启动时的端口 二、给krpano添加div展示信息
和场景一起转动#xff0c;不是layer#xff0c;layer是固定的#xff0c;没啥用。 主要是onloaded里面的1个方法。
action name…一、修改krpano端口
.\tour_testingserver -port8085 修改端口指定启动时的端口 二、给krpano添加div展示信息
和场景一起转动不是layerlayer是固定的没啥用。 主要是onloaded里面的1个方法。
action nameadd_all_the_time_tooltip_infotxtadd(tooltipname, tooltip_, get(name));addplugin(get(tooltipname));txtadd(plugin[get(tooltipname)].parent, hotspot[, get(name), ]);set(plugin[get(tooltipname)].url,%SWFPATH%/plugins/textfield.swf);set(plugin[get(tooltipname)].align,top);set(plugin[get(tooltipname)].edge,bottom);set(plugin[get(tooltipname)].x,0);set(plugin[get(tooltipname)].y,0);set(plugin[get(tooltipname)].autowidth,true);set(plugin[get(tooltipname)].autoheight,true);set(plugin[get(tooltipname)].vcenter,true);set(plugin[get(tooltipname)].background,true);set(plugin[get(tooltipname)].backgroundcolor,0x000000);set(plugin[get(tooltipname)].roundedge,5);set(plugin[get(tooltipname)].backgroundalpha,0.65);set(plugin[get(tooltipname)].padding,5);set(plugin[get(tooltipname)].border,false);set(plugin[get(tooltipname)].glow,0);set(plugin[get(tooltipname)].glowcolor,0xFFFFFF);set(plugin[get(tooltipname)].css,text-align:center; color:#FFFFFF; font-family:MicrosoftYahei; font-size:30px;);if(device.mobile,set(plugin[get(tooltipname)].css,text-align:center; color:#FFFFFF; font-family:MicrosoftYahei; font-weight:bold; font-size:30px;););set(plugin[get(tooltipname)].textshadow,0);set(plugin[get(tooltipname)].textshadowrange,6.0);set(plugin[get(tooltipname)].textshadowangle,90);if(text OR text null,copy(plugin[get(tooltipname)].html,scene[get(linkedscene)].title),copy(plugin[get(tooltipname)].html,text));set(plugin[get(tooltipname)].enabled,false);set(plugin[get(tooltipname)].html,div classdivttabletrdiv classtitlediv1/div/trtrtd1:/td td1/td /trtrtd1:/td td1/td /trtrtd1:/td td1/td /trtrtd1:/td td1/td /tr/table/div);set(plugin[get(tooltipname)].vlookat,45/action
三、krpano热点文字显示 add_all_the_time_tooltip_info 代码在上一节点。
scene namescene_2lowsecrit title onstart thumburlpanos/s/thumb.jpg lat lng alt heading....hotspot namespot1619696682 styleskin_hotspotstyle_div ath3.18 atv20.579 depth1300.0 hlookat110linkedscenescene_2lowsecrit linkedscene_hoffset0.0 use3dtransitiontrueonloadedadd_all_the_time_tooltip_info();do_crop_animation_div(64,64, 60); //scene
四、其它常用操作
1.增加热点的目的只是想画一个箭头切换一下场景打开krpano Tools.exe打开软件主界面点击左上方按钮“load xml”,载入vtour文件夹中的tour.xml文件就可以在软件中看到刚刚制作的场景了。 2.可以通过代码写入热点
hotspot namemytext1typetextzoomtrueath4.642 atv24.049 edgecenterdistortedtruerendererwebglhtml[span]DMI[/span]cssfont-family:Arial; font-size:14px; color:#fff;vcenterfalsepadding5wordwraptruebgtruebgcolor0x000000bgalpha0.6bgborder0bgroundedge0bgshadowtxtshadowmergedalphatrueoversampling1.0mipmappingfalseonautosizedonovertween(alpha,1);tween(scale,0.9);onouttween(alpha,1);tween(scale,1);onclickaction(open,container1);/
3.layer属性详解
layer name... 定义引入的元素名称typeimage 引入元素的类型可以为image、container、texttextfieldcontainer为容器可在容器内继续引入多个媒体元素url... 引入元素的路径支持格式SWF, JPG, PNG, GIF.html 显示文字时的内容keepfalse 是否在跳入新场景时仍然保留显示该元素parent 设置父容器名称可以直接是 plugin的name,也可以是全称parentlayer[name]或parenthotspot[name]alturl #引入元素的路径支持格式SWF, JPG, PNG, GIF.只在html5浏览器使用devicesall 设置显示的设备类型详见设备列表visibletrue 设置插入元素是否可见enabledtrue 设置插入元素是否接受鼠标事件handcursortrue 鼠标移动该元素上时是否变为小手maskchildrenfalse 设置是否将子控件变为蒙板设置为TRUE后除子控件范围显示外子控件边框与父控件边框之间区域将不显示scalechildrenfalse 设置是否子空间跟随父控件一同缩放zorder 插入元素的次序索引可以是字符也可以是数字html5输出必须是0-100整数capturetrue 只是该元素接受事件false时子元素也可接受事件childrentrue 启用当前元素的子元素来接收鼠标事件。preloadfalse 预加载在加载pano之前先加载图层/插件的url然后执行任何操作。blendmodenormal 混合/混合模式 normal, layer, screen, add, subtract, difference, multiply, overlay, lighten, darken, hardlight, invert仅flashstyle 调用已在文件中定义好的style的名称align 元素在屏幕对齐方式lefttop, left, leftbottom, top, center, bottom, righttop, right, rightbottom 见示意图edge 元素的边缘或描点层对齐方式lefttop, left, leftbottom, top, center, bottom, righttop, right, rightbottom 见示意图x 对齐边界到对齐点的X横向距离y 对齐边界到对齐点的y横向距离ox 偏移oy 偏移rotate0.0 插入元素显示时旋转度数width 插入元素的显示宽度(prop:自适应)height 插入元素的显示高度minwidth0maxwidth0minheight0maxheight0autowidthfalse 根据内容自适应宽度autoheightfalse 根据内容自适应高度scale1.0 插入元素的缩放比例pixelhittestfalse 仅flashsmoothingtrue 平滑 仅flashaccuracy0 精度alpha1.0 插入元素的不透明度autoalphafalse 自动透明度usecontentsizefalse 满画布 仅flashscale9grid 定义9格网格scale9gridx-position|y-position|width|height|prescale*crop 定义元素坐标及宽高 cropx-position|y-position|width|heightonovercrop 设置元素鼠标移到上方后的坐标及宽高ondowncrop 设置元素鼠标按下状态后的坐标及宽高mask 遮罩 仅flasheffect 位图效果适用于层/插件的形象 仅flashbackground 可以设置false 去掉背景bgcolor0x000000 typecontainer状态下的背景颜色非container状态下无效bgalpha0.0 背景不透明度bgborder0 bgborderwidths color alpha边框bgroundedge0 圆角bgshadow 基本bgshadowxoffset yoffset blur color alpha高级gshadowxoffset yoffset blur spread color alpha inset, ...阴影bgcapturefalse 是否捕抓在背景容器上事件typecontainer状态下生效onover 鼠标在经过上方时执行动作onhover 鼠标停在上方时执行动作onout 鼠标停移出范围时时执行动作onclick 鼠标停点击时执行动作ondown 鼠标按下时执行动作onup 鼠标按键松开时执行动作onloaded 加载元素完成后执行动作/
4.增加热点事件
!-- 定义一个动作 --
!-- 打开关闭图片 --
action nameopen
!-- 这个语法的意思就是把第一个参数的visible显示设置为true --
set(plugin[%1].visible,true);
tween(plugin[%1].alpha,1);
/actionaction nameclose
set(plugin[%1].visible,false);
/actionhotspot namemytext1typetextzoomtrueath4.642 atv24.049 edgecenterdistortedtruerendererwebglhtml[span]DMI[/span]cssfont-family:Arial; font-size:14px; color:#fff;vcenterfalsepadding5wordwraptruebgtruebgcolor0x000000bgalpha0.6bgborder0bgroundedge0bgshadowtxtshadowmergedalphatrueoversampling1.0mipmappingfalseonautosizedonovertween(alpha,1);tween(scale,0.9);onouttween(alpha,1);tween(scale,1);onclickaction(open,container1);/!-- 司机室右侧面板上ATP旋转开关 --hotspot namemytext2typetextzoomtrueath99.563 atv34.140 edgecenter......onclickaction(open,container2);这里声明点击的动作 其中container2 是下边图片图层的名字/layernamecontainer2typeimage 定义图片图层url图片的地址width100%height100%maskchildrentruevisible0childrentruebackgroundtrue bgcapturetrue enabledtruebgcolor0x000000 bgalpha0.8onclickaction(close,get(name)); // 点击这个图片就可以隐藏图片
先就记这些欢迎关注。