Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.com
|
|
Quellcode |
1 2 3 4 5 6 7 |
<layer xxx onclick="open_scroll();" />
<action name="open_scroll"> set(layer[scroll_text_back].visible,true);set(layer[scroll_text_1].visible,true); </action>
<scene xxx onstart="set(layer[scroll_text_1].html,data:html_test1)" >
<layer name="scroll_text_back" type="container" bgcolor="0xEA574D" bgalpha="0.3" width="100%" height="30px" keep="true" visible="false" /> <layer name="scroll_text_1" type="text" style="scroll_text" html="" keep="true" visible="false" /> <style name="scroll_text" type="text" align="top" x="" y="-2" width="100%" bg="false" enabled="false" />
<data name="html_test1"> <style type="text/css"> .scroll { margin : auto; width : 100%; font-size : 120%; line-height: 2.4em; text-align : center; border : ; color : #ffffff; background-color: rgba(2, 0, 5, 0); overflow : hidden; } .scroll span{ display : inline-block; padding-left: 100%; white-space : nowrap; line-height : 1em; animation : scrollAnime 30s linear infinite; } @keyframes scrollAnime{ 0% { transform: translateX(0)} 100% { transform: translateX(-100%)} } </style>
<div class="scroll"> <span>[img src="./image/xxx.svg" height=17px ]<bold>test1.test1.test1.test1</bold></span> </div> </data>
</scene>
|
Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
|
|
Quellcode |
1 |
<events name="scrolltxt" keep="true" onnewscene="CheckTxt"/> |
|
|
Quellcode |
1 |
<events name="scrolltxt" keep="true" onnewscene=""/> |
: https://pame.virtualtuur.comjeremyfukunaga-san.
I hope this will give you a hint.![]()
![]()
Quellcode
1 2 3 4 set(layer[scroll_text_back].visible,true);set(layer[scroll_text_1].visible,true); [img src="./image/xxx.svg" height=17px ]test1.test1.test1.test1jeremyfukunaga-san.
I hope this will give you a hint.![]()
![]()
Quellcode
1 2 3 4 set(layer[scroll_text_back].visible,true);set(layer[scroll_text_1].visible,true); [img src="./image/xxx.svg" height=17px ]test1.test1.test1.test1Thank you for this. It's a little over my head, but I will spend some time experimenting with how to incorporate it and see if it works. Thank you again!
Thank you,Tuur. I did try removing the CheckTxt already and it does remove it, but I am unable to open it again with the button I have to open and close it. I click the button and it does nothing.Hi,
I think (?) the problem is here in the onnewscene event.. which is also called on the first pano (!).
![]()
Quellcode
1
perhaps first change that to:
![]()
Quellcode
1
then maybe try in hide_introscreen action to add:
CheckTxt();
events[scrolltxt].onnewscene = 'CheckTxt();';
or so..
Tuur![]()