Beiträge von ngant1096

    HI team,


    I am doing a hotspot that loads data from iframe. When you click on it, it will pop up a corresponding link.
    but now it is not receiving the onclick event .Please support me

    <hotspot name="hs_video_xq1"
    id="product"
    url="assets/black.png"
    pausedonstart="false"
    loop="true" renderer="css3d"
    distorted="true" ath="94.014" atv="2.531" rx="5.5" ry="-1.1" rz="-0.7" scale="0.743" alpha="1.0"
    onloaded="add_iframe(calc(product_link_iframe), 600, 400,calc(product[2].id));"
    onclick=" youtubeplayer_open(calc(video[1].video_link)); sound_off(hs_video);" onhover="action(showHotSpot_text, Watch video) "
    />

    <action name="add_iframe" type="Javascript">
    var iframe = document.createElement("iframe"); iframe.style.position = "absolute"; iframe.style.left = 0;
    iframe.style.top = 0; iframe.style.width = "100%"; iframe.style.height = "100%";
    iframe.style.border = 0;
    iframe.src = args[1] + args[4] ;
    caller.registercontentsize(args[2], args[3]);
    iframe.setAttribute('allowFullScreen', '');
    caller.sprite.appendChild(iframe);
    </action>

    HI team,

    I am doing a hotspot that loads data from iframe. When you click on it, it will pop up a corresponding link.
    but now it is not receiving the onclick event .Please support me

    <hotspot name="hs_video_xq1"
    id="product"
    url="assets/black.png"
    pausedonstart="false"
    loop="true" renderer="css3d"
    distorted="true" ath="94.014" atv="2.531" rx="5.5" ry="-1.1" rz="-0.7" scale="0.743" alpha="1.0"
    onloaded="add_iframe(calc(product_link_iframe), 600, 400,calc(product[2].id));"
    onclick=" youtubeplayer_open(calc(video[1].video_link)); sound_off(hs_video);" onhover="action(showHotSpot_text, Watch video) "
    />

    <action name="add_iframe" type="Javascript">
    var iframe = document.createElement("iframe"); iframe.style.position = "absolute"; iframe.style.left = 0;
    iframe.style.top = 0; iframe.style.width = "100%"; iframe.style.height = "100%";
    iframe.style.border = 0;
    iframe.src = args[1] + args[4] ;
    caller.registercontentsize(args[2], args[3]);
    iframe.setAttribute('allowFullScreen', '');
    caller.sprite.appendChild(iframe);
    </action>

    Hi everyone, I have this 1 problem:
    I pass data from database to file index.html


    var lobby = {!! json_encode($lobby) !!}
    var virtual = {!! json_encode($virtual) !!}
    console.log(lobby.videos[0]);
    embedpano({
    swf: "/" + lobby.sample.file + "/tour.swf",
    xml: "/" + lobby.sample.file + "/tour.xml",
    target: "pano",
    html5: "auto",
    initvars: {
    virtual: virtual.title,
    mypath: "assets/images/standee/1.png",
    setting: virtual.setting_expo,
    videolink: window.location + "/video",
    videolobby: lobby.videos[0],
    lobby: lobby


    },
    mobilescale: 1.0,
    passQueryParameters: true
    });


    in tour.xml file, i have 1 video hotspot passed videolobby value


    <hotspot name="hs_video_5"
    url="/%$setting.standee%"
    pausedonstart="false"
    loop="true"
    distorted="true" ath="-0.221" atv="-14.443" rx="-13.1" ry="2.0" rz="0.0" scale="0.203" alpha="1.0"
    onload="hs_video[hs_video].play();"
    onclick="looktohotspot(get(name),90); youtubeplayer_open(videolobby.video_link);
    sound_off(hs_video);"
    onhover="action(showHotSpot_text, Watch video) "
    />
    in the function youtubeplayer_open
    I trace(%1) the correct data
    but when i insert in 1 iframe it takes the variable name and not the value i pass in:


    txtadd(iframecode, '[iframe width="',get(layer[youtubeplayer_plugin].width),'" height="',get(layer[youtubeplayer_plugin].height),'" src="https://www.youtube.com/embed/',%1,'?',get(youtubeplayer_settings.parameters),'" frameborder="0" allowfullscreen][/iframe]');


    Show me how to transmit data