…I need assistance on iframes..
i have 3 videos, need to click on one and it loads in the iframe.. have that working but can’t get the code so when i click on another it loads it at all
here’s what i have so far
[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>
<a onclick=”load(‘stuck.php’); return false” class=”ad-wrap”><img src=”../../graphics/clients/jc-stuck.png” alt=”JC” id=”c-ad”/>”Stuck”</a>
thanks guys