Hello Fellow Krpano-ers!
First post, but long time reader. Thank you for such an awesome resource and Klaus thank you for such an awesome tool!
I am having difficulty incorporating OpenX within Krpano. I know I can create a div or iframe the tour, but for this particular project the best case would be from within.
HTML:
<script type='text/javascript' src='http://d1.openx.org/spcjs.php?id=52489&target=_blank'></script>
XML:
url="http://d1.openx.org/avw.php?zoneid=227008&"onclick="openurl(http://d1.openx.org/ck.php?n=a3b9cd3d&)"
According to Klaus' documentation URL attribute the supported file types are: SWF, JPG, PNG, GIF.
When I insert the direct url the rest works, but this defeats the purpose of the ad server. I need to figure out a way for krpano to display the dynamic images from the ad server.
There are three invocation tag types offered by OpenX:
Javascript
<!--/* OpenX Javascript Tag v2.8.6-rc2 */-->
<script type='text/javascript'><!--//<![CDATA[ var m3_u = (location.protocol=='https:'?'https://d1.openx.org/ajs.php':'http://d1.openx.org/ajs.php'); var m3_r = Math.floor(Math.random()*99999999999); if (!document.MAX_used) document.MAX_used = ','; document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u); document.write ("?zoneid=227008&target=_blank"); document.write ('&cb=' + m3_r); if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used); document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : '')); document.write ("&loc=" + escape(window.location)); if (document.referrer) document.write ("&referer=" + escape(document.referrer)); if (document.context) document.write ("&context=" + escape(document.context)); if (document.mmm_fo) document.write ("&mmm_fo=1"); document.write ("'><\/scr"+"ipt>");//]]>--></script><noscript><a href='http://d1.openx.org/ck.php?n=aaa4dc28&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://d1.openx.org/avw.php?zoneid=227008&cb=INSERT_RANDOM_NUMBER_HERE&n=aaa4dc28' border='0' alt='' /></a></noscript>
iframe
<!--/* OpenX Javascript Tag v2.8.6-rc2 */-->
<script type='text/javascript'><!--//<![CDATA[ var m3_u = (location.protocol=='https:'?'https://d1.openx.org/ajs.php':'http://d1.openx.org/ajs.php'); var m3_r = Math.floor(Math.random()*99999999999); if (!document.MAX_used) document.MAX_used = ','; document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u); document.write ("?zoneid=227008&target=_blank"); document.write ('&cb=' + m3_r); if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used); document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : '')); document.write ("&loc=" + escape(window.location)); if (document.referrer) document.write ("&referer=" + escape(document.referrer)); if (document.context) document.write ("&context=" + escape(document.context)); if (document.mmm_fo) document.write ("&mmm_fo=1"); document.write ("'><\/scr"+"ipt>");//]]>--></script><noscript><a href='http://d1.openx.org/ck.php?n=aaa4dc28&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://d1.openx.org/avw.php?zoneid=227008&cb=INSERT_RANDOM_NUMBER_HERE&n=aaa4dc28' border='0' alt='' /></a></noscript>
imagetag
<!--/* OpenX Image Tag v2.8.6-rc2 */-->
<a href='http://d1.openx.org/ck.php?n=a3b9cd3d&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://d1.openx.org/avw.php?zoneid=227008&cb=INSERT_RANDOM_NUMBER_HERE&n=a3b9cd3d' border='0' alt='' /></a>
What is the best way to go about doing this? I would appreciate any input. I am open to try anything.