Dynamicly set parent

  • Hi,

    Dunno if it's the right place to these questions.

    I can't find a way to dynamically sets the parent of a layer.

    In a <style>, I've this:

    JavaScript
    onover="[...] set(layer[popup_go].parent, hotspot[get(name)]); [...]"

    If instead of `hotspot[get(name)]` I use `hotspot[spot1])`, it works. and if I `trace` those, it seems i get same object.


    My goal is on hovering a hotspot, I want to display a popup (`popup_go`) that is aligned with the hotspot.


    Also, instead of `hotspot[get(name)]`, is there a way to have access to curent element (because I script it via a Style.) (like `this` or `self` in other languages.


    Thanks!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!