Sie sind nicht angemeldet.

1

Donnerstag, 3. Mai 2012, 09:59

How to change "bordercolor" in thumbbar (from krpano examples)?

Hi

Ich möchte die Rahmenfarbe der Thumbbar bestimmen, weiss aber nicht, woher die graue Farbe kommt. Ich brauche die Firmenfarbe gelbgrün.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
	<action name="start">


		<!--
			syntax:
				create_thumbbar(numberofimages, align, orientation, x,y, width,height, border);

			numberofimages ... number of images
			align      	... position of the imagebar (lefttop,left,leftright,top,center,bottom,righttop,right,bottom)
			orientation	... orientation of the imagebar (h or v)
			x,y        	... position offsets
			width,height   ... thumbnail imagesize
			border     	... border around images
		-->
		create_thumbbar(6, bottom, h, 10,10, 90,60, 6);   Farbeingabe hier möglich oder via css ?

		thumbbar_addimage('tuned_truck_1.tiles/images/IMG_1683.jpg');
		thumbbar_addimage('tuned_truck_1.tiles/images/IMG_1685.jpg');
		thumbbar_addimage('tuned_truck_1.tiles/images/IMG_1688.jpg');
		thumbbar_addimage('tuned_truck_1.tiles/images/IMG_1696.jpg');
		thumbbar_addimage('tuned_truck_1.tiles/images/IMG_1702.jpg');
		thumbbar_addimage('tuned_truck_1.tiles/images/IMG_1704.jpg');
	</action>



Danke für Tipps.

Gruss
2d3d

2

Donnerstag, 3. Mai 2012, 12:39

Hallo,

in dem Verzeichnis des Beispiels gibt es eine Datei white.jpg. Die müsstest Du durch ein JPG mit der von Dir gewünschten Farbe ersetzen. Grau erscheint es, weil es den Aplphawert 05 hat.

LG
Peter

3

Freitag, 4. Mai 2012, 19:27

Hi,

richtig, siehe in der 'thumbbar.xml' diese beiden Zeilen dazu:

Quellcode

1
2
set(plugin[thumbbar].url, '%CURRENTXML%/white.jpg');
set(plugin[thumbbar].alpha, 0.5);


Schöne Grüße,
Klaus

Ähnliche Themen