Recently we had to use animatedModal.js in a project. The brilliant work of João Pereira. Let’s explore this jQuery plugin...
I want to start this post by saying that I’m not a fan of using iframes, however, sometimes due to restrictions within some development environments it may be the only way to embed content into your site of blog.
// Set path to the iframe file var filePath = 'http://www.myspace.com'; // Setup the iframe target var iframe=''; // Write the iframe to the page document.write(iframe); var myIframe = parent.document.getElementById("frame"); // Setup the width and height myIframe.height = 350; myIframe.width = 960; myIframe.src = filePath; // set the style of the iframe myIframe.style.border = "1px solid #999"; myIframe.style.padding = "8px";
And that’s it, any questions or comments leave them below.