[quote]function addbox(){
x1=document.createElement("div");
x1.id="playlist";
document.getElementById("0").parentNode.appendChild(x1);
playlist.innerHTML="<h2>My Playlist</h2>"
+"COMPLETE EMBED CODE HERE / CHATBOX / SLIDE WHATEVER"
}
setTimeout("addbox()",1000)[/quote]
just remember to change the double quote[b] [color=#ff0000]" [/color][/b] to single[color=#ff0000][b] '[/b][/color]
eg:
if the width= [color=#ff0000]"[/color]500[color=#ff0000]"[/color] change it to width= [color=#ff0000]'[/color]500[color=#ff0000]'[/color]
if u want to [b][color=#ff0000]reposition [/color][/b] it just change the [b][color=#001dff]getelementById ("0")[/color][/b]
to any number that correspond the box u want it to appear
if u want to [b][color=#ff0000]apply css [/color][/b] use the id u use for ur addbox
in the code presented it uses playist as the id
thus the css will be like this:
[quote][b][color=#004eff]#playlist [/color][/b] {[color=#ff4400]margin-bottom: 40px[/color]! important; border etc etc}
[b][color=#004eff]#playlist h2 [/color][/b] { [color=#ff4400]text-align:center[/color]! important; font etc etc! important}[/quote]
if u wish [color=#ff4400][b]to add more box [/b][/color] just repeat the process
[quote]function addbox(){
x1=document.createElement("div");
x1.id="playlist";
document.getElementById("0").parentNode.appendChild(x1);
playlist.innerHTML="<h2>My Playlist</h2>"
+"COMPLETE EMBED CODE HERE / SLIDE WHATEVER"
[color=#ff4400]x2=document.createElement("div");
x2.id="anotherekek";
document.getElementById("0").parentNode.appendChild(x2);
anotherekek.innerHTML="<h2>My Ewan</h2>"
+"COMPLETE EMBED CODE HERE / SLIDE WHATEVER"[/color]
}
setTimeout("addbox()",1000)[/quote]
for [color=#ff4400]ie user u may remove [/color] the
function and setTimeout
eg:
[quote]x1=document.createElement("div");
x1.id="playlist";
document.getElementById("0").parentNode.appendChild(x1);
playlist.innerHTML="<h2>My Playlist</h2>"
+"COMPLETE EMBED CODE HERE / CHATBOX / SLIDE WHATEVER"[/quote]
code provided by: [b]~ ArchAngell ~[/b]
----
Just to inform you guys, Maybe some of you are confused that this trick might need a onload handler or an addbox function or whatsoever. This trick doesn't need all of those ([i]onload handler or some addbox function[/i]). Just follow the given instructions on the 1st page. You just need to have a JS extention, ofcourse for your JS scripts file. so there. Good Luck.
Last edited by portuniecho (2009-01-06 19:28:00)