|
Post by eveready on Jun 1, 2010 4:39:32 GMT -8
Browser tested: IE, FF and Chrome placement: Global or Board Footer NOTE: Not responsible for any damage your site incurs from members embedding sinister content
This code allows users to add a website / HTML document within an iframe into your post. You may set the width and height of the iframe as you wish in this part... nwStuff='<iFrame width="100%" height="500px" ... using a percentage (%) or pixels (px). When posting, simply place a website URL within the tags [frame]***url here***[/frame] and the live website will appear in the post. <script type="text/javascript"> <!-- // iframes (websites) in posts // by Wormopolis - [url]www.wormocodes.com[/url] // assist goes to eveready // keep header intact - do not repost
if(location.href.match(/action=display/i)){ var aTD= document.getElementsByTagName('TD'); for(a=0;a<aTD.length;a++){ if(aTD[a].colSpan=="3" && aTD[a].vAlign=="top"){ if(aTD[a].innerHTML.match(/\[frame\](.*?)\[\/frame\]/)) { content=RegExp.$1; nwStuff='<iFrame width="100%" height="500px" scrolling="no" src ="' + content + '"></iFrame>'; aTD[a].innerHTML=aTD[a].innerHTML.replace(/\[frame\](.*?)\[\/frame\]/,nwStuff); a--; // this subtracts 1 } } } } // --> </script>
|
|