Sie sind nicht angemeldet.

1

Mittwoch, 8. Januar 2014, 16:08

SOLVED - Scrolling Textfield - How to reset sliders to the top?

Hello,

I'm using a scrolling textfield for several text hotspots in a tour. The text is updated via an action each time by addressing its individual <data> content. This works fine so far, however, since I'm using the very same plugin every time, the scroll slider state seems to be saved and hence it is wrong some times. E.g. when I scroll down to the end of the text with hotspot 1 and open hotspot 2, it will show the scroll slider at the end of text 2 as well.

Is there a parameter to set back to 0 or so, every time the user stops reading and closes the text, so that next time the scroll slider is at the top again?

All help appreciated very much.

Michael

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »mstoss« (9. Januar 2014, 12:09)


Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

2

Mittwoch, 8. Januar 2014, 16:22

Hi! In standard scrolling textfield example layer "scrollslider" has y="24". I guess, you should make an action which will set y of the "scrollslider" to "24" every time the text is closed. Or maybe, you have some other "y" value for the "scrollslider".
Regards,

Alexey

3

Donnerstag, 9. Januar 2014, 12:09

Hi Alexey,

Thank you very much, that was half of the solution and all of the way to go :-)

I added two values now for my action, one for the slider position (as you said) and one for the text content itself:

Quellcode

1
2
3
4
5
	<action name="a_popuptext">
		    		set(layer[%1].html,data:%2);	
		    		set(layer[%1].y,0);	
		    		set(layer[img-scrollslider].y,24);	
  	</action>


Thanks again!

Michael