holyearth
10-14-2006, 03:18 PM
I've got this bit of javascript:
IFrames = document.getElementsByTagName('IFRAME');
if(Threads > IFrames.length)
for(i = IFrames.length+1; i <= Threads; i++)
{
oIFrm = document.createElement('IFRAME');
oIFrm.name = 'i'+i;
oIFrm.width = '10';
oIFrm.height = '10';
oIFrm.scrolling = 'no';
oIFrm.frameBorder= 'no';
document.appendChild(oIFrm);
}
When the function is called, it's not showing the iframes in the document. They are loaded but not shown. Where did I go wrong?
IFrames = document.getElementsByTagName('IFRAME');
if(Threads > IFrames.length)
for(i = IFrames.length+1; i <= Threads; i++)
{
oIFrm = document.createElement('IFRAME');
oIFrm.name = 'i'+i;
oIFrm.width = '10';
oIFrm.height = '10';
oIFrm.scrolling = 'no';
oIFrm.frameBorder= 'no';
document.appendChild(oIFrm);
}
When the function is called, it's not showing the iframes in the document. They are loaded but not shown. Where did I go wrong?