try :
onclick="infospotsON()"
Thanks, I already did it the other way, but, on occasion, I will try this method.
FYI, you don't need keep="true" in <action>s.
This code is in another file of the tour and attached to the main tour separately. Since I did not change the attributes of hotspots, I wrote everything I could think of