• Hi,

    maybe it's better to rewrite that post in english, so here it is.
    I have a serious problem with multiple hotspot onclick events. Please take a look at my code:
    ___________________________________________________________________________________
    Hallo,

    Ich platziere gerade mehrere Hotspots in einem Gigapixel und habe alle hotspots mit Masken versehen (mehr oder weniger aus dem example kopiert).
    Ich glaube es spart Zeit wenn ich einfach den entsprechenden Code kopiere anstelle jetzt einen Roman zu schreiben:

    My problem is the onclick action of my hotspots. It only triggers on the last one. Did I make something wrong or could there be an interaction with some other actions/plugins?
    Please be patient, it's the first real usage of krpano for me.
    _____________________________________________________________________________________

    Mein Problem besteht darin, dass zwar alle Hotspots angezeigt werden, aber nur das onclick event des letzten Hotspots funktioniert.
    Ich arbeite gerade das erste Mal eingehender mit dem krpano, also bitte nicht gleich über mich herfallen *unsure*

    Edited 2 times, last by Isgaroth (September 29, 2011 at 3:13 PM).

  • Hallo Isgaroth,

    Du musst das hier:

    Quote

    switch(destscale,0.25,1.8);


    in das ändern:

    Code
    switch(hotspot[Name des Hotspots].destscale,0.25,1.8);

    Und zwar für jeden Hotspot einzeln.

    Oder du weist den Hotspots einen Style zu und sprichst diesen dann mit der action an. (https://krpano.com/docu/xml/#hotspot.style)

    0100011101101100011001010110100101100011 0110100000100000011010110110110001100001 0111010001110011011000110110100001110100 0110010101110100001011000010000001001010 0111010101101110011001110110010100101110 0010000001000101011000110110100001110100 0010000001101010011001010111010001111010 0111010000101110

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!