...I need assistance on iframes..
i have 3 videos, need to click on one and it loads in the iframe.. so far I have
that working but can't get the code to load another video when i click
here's what i have so far
<a onclick="load('stuck.php'); return false" class="ad-wrap"><img src="../../graphics/clients/jc-stuck.png" alt="JC" id="c-ad"/>"Stuck"</a>Code:<script type="text/javascript"> function load(file){ var iframeTag = document.getElementById('frame'); var body = document.getElementsByTagName('body').item(0); var myiframe = document.getElementById('myiframe'); if(iframeTag) body.removeChild(iframeTag); iframe = document.createElement('iframe'); iframe.src = file; iframe.id = 'frame'; iframe.width = '500px'; iframe.height = '330px'; iframe.frameborder = '0'; iframe.margin = '0'; iframe.scrolling = 'no'; myiframe.appendChild(iframe); } </script> <div id="myiframe"></div>