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.

Graydon

Professional

  • "Graydon" started this thread

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

1

Monday, May 25th 2009, 5:14am

z-order issue when stacking image layers

When I stack up 3 overlapping images... the image that should be the 2nd / middle layer according to the z-order actually shows at the bottom of the stack.

I tested a variety of options / configurations... and noticed that when I up the layer to 6 total images... it's layer / level 3 that drops down to the bottom.

Here's a 6 layer sample... http://goto.marlincreek.com/layers/

It's just a bunch of black / blue sqr jpgs layed on top of each other.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<plugin name="layer1"
	url="black_sq.jpg"
	z-order="100"
	origin="center" x="" y=""
	width="700"  height="500"
	alpha="0.7"
	onhover="showtext(layer 1);"
/>

<plugin name="layer2"
	url="blue_sq.jpg"
	z-order="102"
	origin="center" x="" y=""
	width="600"  height="400"
	alpha="0.7"
	onhover="showtext(layer 2);"
/>

<plugin name="layer3"
	url="black_sq.jpg"
	z-order="104"
	origin="center" x="" y=""
	width="500"  height="300"
	alpha="0.7"
	onhover="showtext(layer 3);"
/>

<plugin name="layer4"
	url="blue_sq.jpg"
	z-order="106"
	origin="center" x="" y=""
	width="400"  height="200"
	alpha="0.7"
	onhover="showtext(layer 4);"
/>

<plugin name="layer5"
	url="black_sq.jpg"
	z-order="108"
	origin="center" x="" y=""
	width="300"  height="100"
	alpha="0.7"
	onhover="showtext(layer 5);"
/>

<plugin name="layer6"
	url="blue_sq.jpg"
	z-order="110"
	origin="center" x="" y=""
	width="200"  height="50"
	alpha="0.7"
	onhover="showtext(layer 6);"
/>


I've tried reverting back to version 1.0.7 to see where a bug might have shown up... but it's the same from 1.0.7 to the current version.

2

Monday, May 25th 2009, 3:50pm

Hi,

just "zorder" instead of "z-order"

best regards,
Klaus

Graydon

Professional

  • "Graydon" started this thread

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

3

Monday, May 25th 2009, 4:35pm

As Homer Simpson would say.... "DOH!"

Debug process...
1. Check for simple errors
2. check for stupid errors
3. repeat 1 & 2

*g* *tongue*

Similar threads