Sie sind nicht angemeldet.

Suchergebnisse

Suchergebnisse 1-4 von insgesamt 4.

Montag, 12. September 2016, 15:27

Forenbeitrag von: »Remi«

alignment on the bottom

Alex, I am interested in a different alignment, too. I would like to open the window on the bottom of the page (some pixels above the bottom would be even better). Thank you!

Dienstag, 23. Februar 2016, 18:34

Forenbeitrag von: »Remi«

getting an attribute that has part of its name stored in a variable

Ok, I think I get it. You are really resourceful, thank you! But sometimes I would still like to use the txtadd method. For example, when klicking on the nm1 hotspot, I would like to play a sound from http://randomadrress.com/folder/kitchen.mp3, which would probably need me to do some kind of txtadd(var, 'http://randomadrress.com/folder/', get(description.get(nm1)), 'mp3'). Of course there are workarounds, but I can't find a straightforward way to do it (to make a code that could easily be under...

Dienstag, 23. Februar 2016, 17:08

Forenbeitrag von: »Remi«

getting an attribute that has part of its name stored in a variable

Thanks for your reply, Piotr! I'm sorry, I already used the name without brackets. I just wrote them here by mistake. The second idea works, thank you! Still, why do showtext() and trace() work so differently? Why does one show kitchen and the other remains at description.nm1? and why wouldn't <hotspot name="nm1", onhover="showtext(get(description.get(name)))" ...> work? Why does a variable have to be passed to a function just to replace the %1 with get(name) afterwards instead of working direct...

Dienstag, 23. Februar 2016, 13:22

Forenbeitrag von: »Remi«

getting an attribute that has part of its name stored in a variable

Hello! I'm sorry to bother you with what I suppose is something everyone should know… but how do I access an attribute has its name stored in another variable? Suppose I have a xml element with the descriptions of my three hotspots nm1, nm2 and nm3, to be shown when I hover over them. <description nm1="kitchen" nm2="bedroom" nm3="living room"...> On the hotspot definition, I call the "find description()" with the onhover. <hotspot name="nm1", onhover="find_description()" ...> If I define the act...