解析anything3d全景播放模板

一、点击下载代码

二、格式

<applet code="a3d.ImageRenderApplet.class" archive="ZIP压缩包地址" codebase="." name="apv" width=625 height=369 ALIGN="left">
  <param name="" value="">
</applet>

三、主要参数

1.file
说明:全景图地址
例如:<param name="file" value="vrpic/01.jpg">

2.quality
说明:未知
例如:<param name="quality" value="2">

3.fov
说明:未知
例如:<param name="fov" value="98">

4.inits
说明:初始化完动作(估计)
例如:<param name="inits" value="viewer:startAutoPan()">

5.wait
说明:等待时显示的图片,默认为当前目录下loading.gif
例如:<param name="wait" value="vrpic/logo.jpg">

6.bar_width、bar_height、barcolor、bar_x和bar_y
说明:分别为进度条宽、高、颜色、x轴位置和y轴位置
例如: <param name="bar_width" value="320" />
<param name="bar_height" value="5" />
<param name="barcolor" value="ff6600" />
<param name=bar_x value=198>
<param name=bar_y value=210>

7.shotspot(n)
说明:控制按钮及事件。值又分为x、y、i、u、target等几个参数:
x:按钮在界面x轴位置
y:按钮在界面y轴位置
i:按钮图片地址
u:按钮点击事件,可以是一个事件也可以是一个网页地址.下边为事件列表:
·ZoomIn():放大一点.例:u'viewer:ZoomIn()'
·ZoomOut():缩小一点.例:u'viewer:ZoomOut()'
·StartZoomIn():不断放大.例:u'viewer:StartZoomIn()'
·startZoomOut():不断缩小.例:u'viewer:startZoomOut()'
·ZoomStop():停止缩放.例:u'viewer:ZoomStop()'
·PanUp():向上转动.u'viewer:PanUp()'
·PanDown():向下转动.u'viewer:PanDown()'
·PanLeft():向左转动.u'viewer:PanLeft()'
·PanRight():向右转动.u'viewer:PanRight()'
·StartAutoPan():自动转动.u'viewer:StartAutoPan()'
·ReverseAutoPan():反方向转动.u'viewer:ReverseAutoPan())'
·StopAutoPan():停止自动转动.u'viewer:StopAutoPan()'
target:当u值是一个网页地址时打开窗口
例如:<param name="shotspot0" value=" x48 Y100 l0.5 q i'pics/panel1/right.gif' u'viewer:panRight()' " />
<param name="shotspot1" value=" x144 Y100 l0.8 q i'pics/panel1/full.gif' u'01.htm'" />
另注:n的值一定要按0,1,2,3...的顺序从小到大

8.regkey
说明:注册码
例如:<param name=regkey value="9701100121011101000000000">

9.hotspot(n)
说明:热区。值又分为x、y、i、u、n、target等几个参数:
x:热区在界面x轴位置
y:热区在界面y轴位置
i:热区图片地址
u:热区点击事件,可以是一个事件也可以是一个网页地址.事件列表同参数shotspot.
n:估计是说明文字
target:网页打开窗口
例如: <param name=hotspot0 value=" x800 y1800 q n'热区一' l0.5 i'pics/1.gif' u'01.htm' target='_self'">
另注:n的值一定要按0,1,2,3...的顺序从小到大

详细参见:http://www.anything3d.com/product/webutils/j-panop/tutorial/step3.php3

评论: 0 | 引用: 0 | 查看次数: 4470
发表评论
登录后再发表评论!