Change Button When Clicked?
Posted: Fri May 11, 2018 6:29 pm
Hi all.
I have made a button that toggles my pano titles on and off. It works to a certain degree but I think I've got the whole concept wrong.
Here's a tour example with it in action:
http://missingman.co.uk/chapel/
It's the button on the right (Letter "A" with a line through it) and when clicked the image changes to one without a line through it and the tiles disappear. When clicked again, the image swaps back, the titles appear. So it seems to be working...
But, if you turn off the titles and then visit a hotspot, the titles reappear (don't want this to happen) but the button stays in the previous (and now wrong) state. It then needs two clicks to toggle things back correctly again.
Could someone give me some guidance to make the button work properly please.
Attached is my skin file.
Thanks
Steve
I have made a button that toggles my pano titles on and off. It works to a certain degree but I think I've got the whole concept wrong.
Here's a tour example with it in action:
http://missingman.co.uk/chapel/
It's the button on the right (Letter "A" with a line through it) and when clicked the image changes to one without a line through it and the tiles disappear. When clicked again, the image swaps back, the titles appear. So it seems to be working...
But, if you turn off the titles and then visit a hotspot, the titles reappear (don't want this to happen) but the button stays in the previous (and now wrong) state. It then needs two clicks to toggle things back correctly again.
Could someone give me some guidance to make the button work properly please.
Attached is my skin file.
Thanks
Steve