Sie sind nicht angemeldet.

virtual pete

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

1

Donnerstag, 10. September 2015, 12:05

simple popup image

Hi, I am trying to make a simple popup image of a floor plan from an icon that appears within a tour. The icon is displayed permanently.

Can anyone give me any help?

I look forward to hearing from you.

2

Donnerstag, 10. September 2015, 15:04

Create a layer with your floor plan, adjust it (x, y, width, height) like you want
Once done, make it visible="false"

Then on your icon:
onclick="switch(layer[floorplan].visible);"

virtual pete

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

3

Donnerstag, 10. September 2015, 17:21

Hi KiboOst, thanks for this. I have it semi working but I must be doing something slightly wrong. Here is the code I have:

<layer name="fbbtn" url="fp.png" scale="1.00" align="topright" x="220" y="10" keep="true" onclick="switch(layer[floorplan].visible);" />


<layer name="floorplan" url="floorplan/tsr0202fp.jpg" scale="0.50" align="center" visible="false" />


As it stands with the code above does not work correctly for me. If I add visible="true" to the floorplan layer I see the floorplan and the button "fbbtn" closes it when clicked but naturally by default I do not want the floorplan to show until the buttin is clicked.

Any ideas?