You are not logged in.

virtual pete

Intermediate

  • "virtual pete" started this thread

Posts: 245

Location: Nerja

Occupation: Holiday rentals Nerja Costa del Sol

  • Send private message

1

Thursday, September 10th 2015, 12:05pm

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.

KiboOst

Trainee

Posts: 83

Location: France

Occupation: TD

  • Send private message

2

Thursday, September 10th 2015, 3:04pm

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

Intermediate

  • "virtual pete" started this thread

Posts: 245

Location: Nerja

Occupation: Holiday rentals Nerja Costa del Sol

  • Send private message

3

Thursday, September 10th 2015, 5:21pm

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?