I have one hs_popup hotspot template defined.
For each hotspot that I'm defining in the pano, I'm trying to use the $ht (target) or $hu (url) placeholders to "pass in" the popup that I want to show to the hotspot template.
In the skin: I have an action for OnClick to "Show Element" and the element is $ht. (I created a hotspot in the pano and I use "popup_cats" for the Target field, and of course hs_popup for the Skin-ID)
In Flash:
This works. The popup shows. So that means whatever I'm populating in the URL and the Target field is getting passed in to hotspot template.
In HTML5:
This doesn't work. When I look in the skin.js file, all I see is this for the OnClick function is a call to the me.skin.hotspotProxyClick function.
Code: Select all
if (hotspot.skinid=='hs_popup') {
this.div=document.createElement('div');
this.div.ggId='hs_popup'
this.div.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
this.div.ggVisible=true;
hs ='position:absolute;';
hs+='left: 754px;';
hs+='top: 80px;';
hs+='width: 5px;';
hs+='height: 5px;';
hs+='-webkit-transform-origin: 50% 50%;';
hs+='visibility: inherit;';
this.div.setAttribute('style',hs);
this.div.onclick=function () {
me.skin.hotspotProxyClick(me.hotspot.id);
}
Code: Select all
if (hotspot.skinid=='hs_popup') {
this.div=document.createElement('div');
this.div.ggId='hs_popup'
this.div.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
this.div.ggVisible=true;
hs ='position:absolute;';
hs+='left: 754px;';
hs+='top: 80px;';
hs+='width: 5px;';
hs+='height: 5px;';
hs+='-webkit-transform-origin: 50% 50%;';
hs+='visibility: inherit;';
this.div.setAttribute('style',hs);
this.div.onclick=function () {
me.skin.popup_cats.style.webkitTransition='none';
me.skin.popup_cats.style.visibility='inherit';
me.skin.popup_cats.ggVisible=true;
me.skin.hotspotProxyClick(me.hotspot.id);
}
Ideally I want a parameter driven way of triggering these 20 popups that I have...I want one hotspot template to be able to trigger any of the popups. The workaround is to created a new hotspot template for each popup that I want to launch. I want to avoid this because the Skin will be crowded with 20 hotspots templates.