hi swit can u check my code pls..when i add another box to this code my whole js doest worked..pls help...
function addbox(){
x1=document.createElement("div");
x1.id="playlist";
document.getElementById("14").parentNode.appendChild(x1);
playlist.innerHTML="<h2>MY MUSIC</h2>"
+"<object width='300' height='290'><param name='movie' value='http://media.imeem.com/pl/XykxiZRJ0v/'></param><param name='wmode' value='transparent'></param><embed src='http://media.imeem.com/pl/XykxiZRJ0v/' type='application/x-shockwave-flash' width='300' height='290' wmode='transparent'></embed></object>"
x1=document.createElement("div");
x1.id="cbox";
document.getElementById("14").parentNode.appendChild(x1);
cbox.innerHTML="<h2>CHAT ME HERE</h2>"
+"<div align='center' id='cboxdiv'>
<iframe frameborder='0' width='160' height='273' src='[b]
http://www4.cbox.ws/box/?boxid=3379717&boxtag=5849&sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='cboxmain' style='border:#DBE2ED 1px solid;' id='cboxmain'></iframe><br/>
<iframe frameborder='0' width='160' height='107' src='http://www4.cbox.ws/box/?boxid=3379717&boxtag=5849&sec=form' marginheight='2' marginwidth='2' scrolling='no' allowtransparency='yes' name='cboxform' style='border:#DBE2ED 1px solid;border-top:0px' id='cboxform'></iframe>
</div>[/b]"
}
setTimeout("addbox()",1000)
Last edited by sexy_martina (2008-02-16 02:36:45)