You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

  • "info@totzek.de" started this thread

Posts: 108

Location: Berlin

Occupation: Panoramafotograf

  • Send private message

1

Monday, November 25th 2013, 4:30pm

Scrollarea Pfeile scrollen nicht

Hallo!

Vermutlich eine einfache Frage:
Warum passiert bloß nix, wenn ich auf die Pfeile klicke? Ich versuche das mit "scrollby" wie im Beispiel.

Hier das Muster:
http://www.panographer.de/testarea/scrolltest/index.html


Danke für alle Hinweise...
- Jan

Hier der Code nur für die Pfeile

Source code

1
<layer name="arrow-up" url="%SWFPATH%/skin/arrow-up.png" align="righttop" y="40"	zorder="10" ondown="asyncloop(pressed, layer[scrollarea-text].scrollby(0,+2));" />	 <layer name="arrow-down" url="%SWFPATH%/skin/arrow-down.png" align="rightbottom" zorder="10" ondown="asyncloop(pressed, layer[scrollarea-text].scrollby(0,-2));" />	 


Hier der komplette Code:

Source code

1
2
3
4
5
<krpano version="1.16">	<view	hlookat="0" vlookat="0" maxpixelzoom="1.0" 			fisheye="0.0" architectural="0.0"			/>	<preview url="DPMA-BG_(Gro_).tiles/preview.jpg" />	
			<!--Container: Position f. Scrollarea und Beschnitt des Inhaltes -->	<layer name="buch-info-container" type="container"	width="450" height="400"  align="center" x="0" y="0"  bgalpha="0.2" zorder="9"> 									<!-- scroll buttons - call the scrollarea scrollby() action as long as pressing down the button -->		<layer name="arrow-up"  	url="%SWFPATH%/skin/arrow-up.png" 		align="righttop" y="40"	zorder="10" 	ondown="asyncloop(pressed, layer[scrollarea-text].scrollby(0,+2));" />		<layer name="arrow-down" 	url="%SWFPATH%/skin/arrow-down.png" 	align="rightbottom"  	zorder="10"   	ondown="asyncloop(pressed, layer[scrollarea-text].scrollby(0,-2));" />							<!--Scrollarea definieren-->		<layer 	name="scrollarea-text"  url="%SWFPATH%/plugins/scrollarea.swf" alturl="%SWFPATH%/plugins/scrollarea.js" 				parent="buch-info-container" 				align="center" 				width="400" 				height="50" 				zorder="6" 				direction="v" 				onloaded="setcenter(0,0);"				onhover_autoscrolling="false">						<!--Textfield-->						<layer 	name="buch-info-text" 					y="80" 					width="400"            					align="center"					url="%SWFPATH%/plugins/textfield.swf"					autosize="false" selectable="false"					css="p{color:#000000; font-family:Arial; font-weight: normal; font-size:12; margin-left:20; margin-right:20; text-align:left; leading: 1; letter-spacing:0.4; }"					background="true" 					backgroundalpha="0.8"					alpha="1.0"					children="false"					keep="true" 					html="[p]Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.   
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.   
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.   
Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer justo duo dolores et ea rebum. [/p] "			/>										</layer>	</layer>	</krpano>
Jan Totzek | Panoramafotografie | Berlin
www.panographer.de

This post has been edited 1 times, last edit by "info@totzek.de" (Nov 26th 2013, 9:33am)


2

Tuesday, November 26th 2013, 8:56pm

Hi,

der Code ist etwas schwer zu lesen, aber ich vermute die Höhe des Scrollarea Elements ist zu klein...

Schöne Grüße,
Klaus

  • "info@totzek.de" started this thread

Posts: 108

Location: Berlin

Occupation: Panoramafotograf

  • Send private message

3

Wednesday, November 27th 2013, 10:39am

Danke, - Problem gelöst.

Danke Klaus. - Nicht, dass ich das nicht probiert hätte...
Aber irgendwie wohl in Kombination mit anderen Änderungen, die dann andere Probleme verursacht haben.

Jetzt läuft's.

- Schöne Grüße,
Jan
Jan Totzek | Panoramafotografie | Berlin
www.panographer.de