我是靠谱客的博主 高挑老鼠,这篇文章主要介绍krpano之鼠标样式修改,现在分享给大家,希望可以做个参考。

引入cursors.js。

cursors.js代码:

<krpano >
<events onxmlcomplete="action(qtvrcursor);" />
<!--鼠标样式样式属性开始 -->
<!--(1)-->
<action name="qtvrcursor">
set(control.mousetype, moveto);
set(cursors.url,
skin/qtvr-cursors.png);
set(cursors.type, 8way);
set(cursors.move,
0|0|16|16);
set(cursors.drag,
16|0|16|16);
set(cursors.arrow_u,
32|0|16|16);
set(cursors.arrow_d,
48|0|16|16);
set(cursors.arrow_l,
64|0|16|16);
set(cursors.arrow_r,
80|0|16|16);
set(cursors.arrow_lu,
96|0|16|16);
set(cursors.arrow_ru, 112|0|16|16);
set(cursors.arrow_rd, 128|0|16|16);
set(cursors.arrow_ld, 144|0|16|16);
</action>
<!--(2)-->
<action name="dragcursor">
set(control.mousetype, drag2D);
set(cursors.url,
skin/drag-cursors.png);
set(cursors.type, drag);
set(cursors.move,
2|0|30|32);
set(cursors.drag, 37|0|30|32);
</action>
<!--(3)-->
<action name="arrowcursor">
set(control.mousetype, moveto);
set(cursors.url,
skin/arrow-cursors.png);
set(cursors.type, 4way);
set(cursors.move,
112|0|28|28);
set(cursors.drag,
112|0|28|28);
set(cursors.arrow_r,
0|0|28|28);
set(cursors.arrow_d,
28|0|28|28);
set(cursors.arrow_l,
56|0|28|28);
set(cursors.arrow_u,
84|0|28|28);
</action>
<!--鼠标样式样式属性 END-->
</krpano>
View Code

并在对应位置放置鼠标样式的图片

例如:

 

转载于:https://www.cnblogs.com/s313139232/p/7383962.html

最后

以上就是高挑老鼠最近收集整理的关于krpano之鼠标样式修改的全部内容,更多相关krpano之鼠标样式修改内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(106)

评论列表共有 0 条评论

立即
投稿
返回
顶部