Sie sind nicht angemeldet.

1

Montag, 7. März 2011, 19:06

Dynamically make hotspot highest layer /order ?

Hi,

I have a downtown city map with approx 20 image hotspots (balls). When I mouse over a hotspot the code below is triggered and up pops a thumbnail image

Quellcode

1
2
         	onout="action(show_hover_image,harbour,null);"
			 onover="action(show_hover_image,harbour,%SWFPATH%/downtown/markers/harbour.png);"


Problem is because the hotspots are all close together when the 'onover' image opens its generally showing behind one of the other image hotspots (balls) so looks a little silly and the thumbnail images is partially blocked.

Is there any way to always make sure the hotspot that is being moused over is always above all the others?

Thanks,

Andrew

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »andrew22222« (7. März 2011, 20:51)


2

Montag, 7. März 2011, 21:55

Have you tried changing zorder onover and returning the value onout?

3

Dienstag, 8. März 2011, 01:28

Hi Jarredja,

Sounds like a plan but unfortunately I've no idea how to implement it. I've tried adding zorder="2" into various parts but just get code errors.

Any advice is appreciated.

Thanks,

Andrew


4

Dienstag, 8. März 2011, 03:02

zorder

onout="set(hotspot[harbour].zorder,1); action(show_hover_image,harbour,null);
onover="set(hotspot[harbour].zorder,20); action(show_hover_image,harbour,%SWFPATH%/downtown/markers/harbour.png);"

Worth a try anyway.

Jarred

5

Dienstag, 8. März 2011, 18:46

Certainly was 'Worth a try' as it worked perfect *thumbsup*

Many thanks for your time Jarred. I'm another step closer to getting my project completed. I think I'm even dreaming about XML code at the moment ;-)

6

Dienstag, 8. März 2011, 19:00

*sleeping* xml *sleeping* <krpano>I Love KRPANO </krpano> *sleeping*

I remember mentioning long ago the day of a new release probably around 1.0.8.b6 that I wasn't going to get much sleep that night. Tuur responded to that," At least you sleep". Krpano has been very addicting to me. Even though I still have trouble coding, I enjoy the heck out of it. I also enjoy assisting when I am able. I strive to not ever say an incorrect statement, but it does occasionally happen.

Good luck to you,

Jarred