Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Montag, 22. November 2010, 07:12

Vtour onhover title

I can't figure out how to ad individual "onhover"-titles on the vtour thumbnails. I've tried this, but it shows the same title on all thumbs:



Zitat

<action name="openthumbs">
if(%1 != NEXT,
set(i,0);
set(events.onclick, set(events.onclick,null); delayedcall(0.1, closethumbs() ); );
set(events.onhover, set(events.onhover,null); );
);
if(i LT scene.count,
txtadd(thumbname,'thumb_',get(i));
openthumb(get(thumbname));
set(plugin[get(thumbname)].onhover, set(events.onhover,null); showtitle(get(i)) );
set(plugin[get(thumbname)].onclick, set(events.onclick,null); closethumbs(); loadscene(get(linkedscene),null,MERGE,BLEND(1)); );
inc(i);
openthumbs(NEXT);
);
</action>



<action name="showtitle">
if(%1 === 0 , showtext(Blomster, hotspotstyle));
if(%1 === 1 , showtext(Zone Butik, hotspotstyle));
</action>


2

Montag, 22. November 2010, 15:06

Hi FvL,

Try this:

Zitat

<action name="openthumbs">
if(%1 != NEXT,
set(i,0);
set(events.onclick, set(events.onclick,null); delayedcall(0.1, closethumbs() ); );
set(events.onhover, set(events.onhover,null); );
);
if(i LT scene.count,
txtadd(thumbname,'thumb_',get(i));
openthumb(get(thumbname));
txtadd(plugin[get(thumbname)].onhover, 'showtitle(', get(i) , ')' );
set(plugin[get(thumbname)].onclick, set(events.onclick,null); closethumbs(); loadscene(get(linkedscene),null,MERGE,BLEND(1)); );
inc(i);
openthumbs(NEXT);
);
</action>


<action name="showtitle">
if(%1 == 0 , showtext(Blomster, hotspotstyle));
if(%1 == 1 , showtext(Zone Butik, hotspotstyle));
</action>
SAlut.

3

Dienstag, 23. November 2010, 01:51

klaus has posted this code in another post on how to so this also

Zitat

...
set(plugin[get(thumbname)].onclick, openthumbs() ); <!-- this line is already there -->
copy(plugin[get(thumbname)].scenetitle, scene[get(i)].title); <!-- add this line -->
set(plugin[get(thumbname)].onhover, showtext(get(scenetitle)) ); <!-- add this line -->

4

Dienstag, 23. November 2010, 05:24

On the same note of setting the attribute, how does one limit VTOUR Thumbnails to HTML5 devices?

I tried adding the following, but it did not work:

Quellcode

1
set(plugin[get(thumbname)].devices, html5);


Any suggestions?

Thanks,
Maz
Maz

Virtual Tour Group Inc.
VirtualTourGroup.com

5

Dienstag, 23. November 2010, 15:04

Hi Maz,

It should work...
try this (added in line 149):

Quellcode

143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
	<action name="buildthumbs">
		if(%1 != NEXT, set(i,0));
		if(i LT scene.count,
			copy(thumb, scene[get(i)].thumburl);
			txtadd(thumbname,'thumb_',get(i));
			addplugin(get(thumbname));
			set(plugin[get(thumbname)].devices, html5);
			set(plugin[get(thumbname)].url, get(thumb));
			set(plugin[get(thumbname)].keep, true);
			set(plugin[get(thumbname)].align, leftbottom);
			set(plugin[get(thumbname)].width,  40);
			set(plugin[get(thumbname)].height, 40);
			set(plugin[get(thumbname)].x, 10);
			set(plugin[get(thumbname)].y, 10);
			mul(plugin[get(thumbname)].x, i,3);
			mul(plugin[get(thumbname)].y, i,3);
			add(plugin[get(thumbname)].x, 5);
			add(plugin[get(thumbname)].y, 5);
			copy(plugin[get(thumbname)].xsmall, plugin[get(thumbname)].x);
			copy(plugin[get(thumbname)].ysmall, plugin[get(thumbname)].y);
			add(plugin[get(thumbname)].zorder, 100, i);
			set(plugin[get(thumbname)].effect,glow(0xFFFFFF,1.0,2,10000));
			set(plugin[get(thumbname)].jsborder,'1px solid #FFFFFF');
			copy(plugin[get(thumbname)].thumbpos, i);
			set(plugin[get(thumbname)].linkedscene, get(scene[get(i)].name) );
			set(plugin[get(thumbname)].onclick, openthumbs() );
			inc(i);
			buildthumbs(NEXT);
		  );
	</action>


SAlut.

6

Dienstag, 23. November 2010, 18:28

Hi Michel,

Thank you! I am going to test it later and see how it performs. I did try it and it was not working properly last night but I will try again to see and will let you know...

Thanks!
Maz
Maz

Virtual Tour Group Inc.
VirtualTourGroup.com

esys

Fortgeschrittener

Beiträge: 267

Wohnort: Balazé France

Beruf: photographer

  • Nachricht senden

7

Montag, 31. Januar 2011, 21:31

Hi,

Is it possible to apply a textstyle to the onhover thumbnail title text ? (like we can do with the "onover" hotspot text) The default one is quiet poor. If so, where write it ?

Thanks. *smile*
Steph

8

Dienstag, 1. Februar 2011, 15:11

you can add a textstyle to any text. the syntax is always. showtext(text goes here, textstyle name); if there is not a ,textstyle defined it uses the default in that case you can always change the default textstyle and not have to declare it.

esys

Fortgeschrittener

Beiträge: 267

Wohnort: Balazé France

Beruf: photographer

  • Nachricht senden

9

Mittwoch, 9. Februar 2011, 18:59

Hi,

Thanks again VN.
I was looking too far while it was by my feet.! *rolleyes*

I found it by myself for one time...
Just add the same line i used for the hotspot, at the right place. It works.
Sorry!

Bye. *smile*
Steph

Ähnliche Themen