inserting html tag
Jun 26, 2013
Hi there!
I am tryining to embed an html code from a webpage into one slide. It is like a show mode for watching several pictures or videos online . Is it possible?? the html tag is here:
<script type="text/javascript">
function arkiveEmbedCallback(data) {
var iframeError = '<h2>Your ARKive API key needs validating</h2><p>Please visit <a href="http://www.arkive.org">arkive</a>';
var iframeCreation = '<iframe id="frame" name="widget" src ="#" width="100%" height="1" marginheight="0" marginwidth="0" frameborder="no"></iframe>';
var iframe = window.location.protocol + "//" + (data.results[0].url);
if (data.error != 'null') {
document.getElementById("arkiveIframe").innerHTML = iframeCreation;
}
else {
document.getElementById("arkiveIframe").innerHTML = iframeError;
}
var iframeAttr = parent.document.getElementById("frame");
// Setup the width and height
iframeAttr.height = 1420;
iframeAttr.width = 672;
iframeAttr.src = iframe;
}
(function () {
function async_load() {
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = 'https://api.arkive.org/v2/embedScript/species/scientificName/Balaenoptera%20physalus?key=booEy_9yVKtAMHqeL4vITTvneMmL7qyyNcEGWlR8XYY1&id=undefined&w=650&h=1420&mtype=all&tn=1&text=1&callback=arkiveEmbedCallback';
var x = document.getElementsByTagName('script')[0];
x.parentNode.insertBefore(s, x);
}
if (window.attachEvent)
window.attachEvent('onload', async_load);
else
window.addEventListener('load', async_load, false);
})();
</script>
<div id="arkiveIframe"></div>
Be the first to reply
This discussion is closed. You can start a new discussion or contact Articulate Support.