Is it possible to get a title and thumbnail for the Scene that is attached to the hotspot?

  • Hi everybody!
    Is there a way to get the title and thumbnail of the Scene when it is mounted on a hotspot?

    Example: I have 2 scene, scene1 and scene2. At scene1 I attached a hotspot to scene2. I want to hover over that hotspot and it will display the scene2's title and thumbnail. Is it possible? Someone please explain for me. Thanks

  • Code
    <scene name="scene_00" title="00" onstart="" thumburl="panos/00.tiles/thumb.jpg" lat="" lng="" heading=""><hotspot name="spot0"  linkedscene="scene_01"  onover="hs_iframe()" onout="remove_hotspot_iframe()"/>
    </scene>
    <scene name="scene_01" title="01" onstart="" thumburl="panos/01.tiles/thumb.jpg" lat="" lng="" heading=""><hotspot name="spot0"  linkedscene="scene_00"  onover="hs_iframe()" onout="remove_hotspot_iframe()"/>
    </scene>
    		<action name="hs_iframe">		txtadd(hs_url,'thumburl_',get(name));		addhotspot(get(hs_url));		copy(hotspot[get(hs_url)].ath,hotspot[get(name)].ath);		copy(hotspot[get(hs_url)].atv,hotspot[get(name)].atv);		set(hotspot[get(hs_url)],			url=get(scene[get(linkedscene)].thumburl),			edge=top,			ox=calc(hotspot[get(name)].ox),	        oy=calc(hotspot[get(name)].height/2),			visible=true,			alpha=1.0,			distorted=true, 			width=150,			height=150,			title=get(scene[get(linkedscene)].title),			onloaded=hsObject_action(),		);		</action>
    		<style name="hs_text_style"         type="text"        distorted="true"        zorder="999999"        flying="0.03"        enabled="false"        padding="5 25 5 25"        bg="true"        bgalpha="0.0"        bgcolor="#000000"        bgroundedge="10"        onautosized="false"        oversampling="3"        mipmapping="2"        css="font-family:Helvetica; font-size:14px; color:#ffffff; margin:0px;"        />
    	<action name="hsObject_action">	calc(hsObject, name + 'hs');	addhotspot(get(hsObject));	copy(hs, hotspot[get(hsObject)]);	hs.loadstyle(hs_text_style);	copy(hs.ath,hotspot[get(name)].ath);	copy(hs.atv,hotspot[get(name)].atv);	copy(hs.ox,hotspot[get(name)].ox);	calc(hs.oy,hotspot[get(name)].oy + hotspot[get(name)].height - 20);	copy(hs.html,hotspot[get(name)].title);	set(hs.visible,true);	set(hs.alpha,1.0);	</action>
    	<action name="remove_hotspot_iframe">	    removehotspot(get(hs_url));	    removehotspot(get(hsObject));		</action>
  • Here is an example code

    Code
    <hotspot name="spot1" onover="get_scene_data" onout="set(layer[scene_data_img].visible, false)"
    Code
    <layer name="scene_data_img" keep="true" width="200" height="100" align="top" edge="bottom" />
    <layer name="scene_data_text" keep="true" type="text" parent="scene_data_img" align="center" css="text-align:center" />
    Code
    <action name="get_scene_data">
         txtadd(layer[scene_data_img].parent, 'hotspot[',get(name),']');
         set(layer[scene_data_img].url, get(scene[get(linkedscene)].thumburl));
         set(layer[scene_data_text].html, get(scene[get(linkedscene)].title));
         set(layer[scene_data_img].visible, true);
        </action>

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!