芝麻1 发表于 2015-4-29 10:43:14

热点上方如何直接显示文字?

想在热点上直接显示文字,(跟缩略图那样),而不是要把鼠标移到热点上才显示文字,求各位大神出来帮忙啊!!!

芝麻1 发表于 2015-4-29 16:49:05

大神呢?都快出来啊

帕诺喇嘛大叔 发表于 2015-5-1 05:41:23

        <hotspot name="spot1" style="hotspot_ani_black"onhover="showtext('这里添加热点文字',hotspottextstyle);"
                ath="-42" atv="2" onclick="looktohotspot(get(name)); LoadThisPano(21b);" />

鱼眼龙 发表于 2015-6-2 19:25:14

在 tour.xml里面找到这么一堆代码

其中跟文字提示相关的是 tooltips那三行,默认是FALSE,都改成TRUE就对了:

<skin_settings maps="false"
                       maps_type="bing"
                       maps_bing_api_key=""
                       maps_zoombuttons="false"
                       gyro="true"
                       title="true"
                       thumbs="true"
                       thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"
                       thumbs_opened="false"
                       thumbs_text="false"
                       thumbs_dragging="true"
                       thumbs_onhoverscrolling="false"
                       thumbs_scrollbuttons="false"
                       thumbs_scrollindicator="false"
                       thumbs_loop="false"
                       tooltips_thumbs="false"   缩略图上的文字提示
                       tooltips_hotspots="false"热点上的文字提示
                       tooltips_mapspots="false"地图上的文字提示
                       loadscene_flags="MERGE"
                       loadscene_blend="BLEND(0.5)"
                       controlbar_offset="20"
                       />

鱼眼龙 发表于 2015-6-3 10:14:31

仍然不能像你说的那样,直接显示出来,还是要待鼠标的唤起。

继续研究中。。。。。。。。。。

keithjack 发表于 2015-12-31 00:01:31

鱼眼龙 发表于 2015-6-3 10:14
仍然不能像你说的那样,直接显示出来,还是要待鼠标的唤起。

继续研究中。。。。。。。。。。

如果要在热点或layer上显示自定义文字,应该怎样弄呢

云眸传媒 发表于 2016-5-30 14:52:50

<action name="add_all_the_time_tooltip">
    txtadd(tooltipname, 'tooltip_', get(name));
    addplugin(get(tooltipname));
    txtadd(plugin.parent, 'hotspot[', get(name), ']');
    set(plugin.url,'%SWFPATH%/plugins/textfield.swf');
    set(plugin.align,top);
    set(plugin.edge,bottom);
    set(plugin.x,0);
    set(plugin.y,0);
    set(plugin.width,100);
    set(plugin.autoheight,true);
    set(plugin.background,true);
    set(plugin.backgroundcolor,0x000000);
    set(plugin.roundedge,15);
    set(plugin.backgroundalpha,0.5);
    set(plugin.border,true);
    set(plugin.glow,4);
    set(plugin.glowcolor,0xFFFFFF);
    set(plugin.css,'text-align:center; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:16px;');
    set(plugin.textshadow,1);
    set(plugin.textshadowrange,6.0);
    set(plugin.textshadowangle,90);
    copy(plugin.html,scene.title);
    set(plugin.enabled,false);      
</action>
把这一段代码复制到vtourksin.xml中就可以了。
然后找到下面这段代码,复制这个替换就可以了。<style name="skin_hotspotstyle" url="vtourskin_hotspot.png" scale="0.5" edge="top" oy="0" distorted="false"               tooltip=""               onclick="if(linkedscene,skin_hidetooltips(); tween(scale,0.25,0.5); tween(oy,-20,0.5);tween(alpha,0,0.5); looktohotspot(); loadscene(get(linkedscene),null,get(skin_settings.loadscene_flags),get(skin_settings.loadscene_blend));skin_updatescroll(); );"               onloaded="add_all_the_time_tooltip();"               />

明海+ 发表于 2016-5-30 15:52:25

云眸传媒 发表于 2016-5-30 14:52
txtadd(tooltipname, 'tooltip_', get(name));
    addplugin(get(tooltipname));
    txtadd(plu ...

大神来啦,鼓掌欢迎

云眸传媒 发表于 2016-5-31 10:20:58

明海+ 发表于 2016-5-30 15:52
大神来啦,鼓掌欢迎

不敢不敢,明海兄抬举,小白一枚,还在学习中~

紅領巾 发表于 2016-7-27 13:56:17

学习当中!!!!
页: [1]
查看完整版本: 热点上方如何直接显示文字?