
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)
just remember to change the double quote " to single '
eg:
if the width= "500" change it to width= '500'
if u want to reposition it just change the getelementById ("0")
to any number that correspond the box u want it to appear
if u want to apply css 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:
#playlist {margin-bottom: 40px! important; border etc etc}
#playlist h2 { text-align:center! important; font etc etc! important}
if u wish to add more box just repeat the process
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"
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"
}
setTimeout("addbox()",1000)
for ie user u may remove the
function and setTimeout
eg:
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"
code provided by: ~ ArchAngell ~
Last edited by switpotato (2008-05-01 12:53:14)




yep.... thats why i indicate for ie u may remove this...


another wonderful script swit..thank you so much for sharing... 
-Offline- |

Thanks for share..
![]()


wahaha! so many short script! love it..
thanks for it swit! ![]()
Last edited by bles_212000 (2008-02-08 01:30:15)

-Offline- |

wow!!great
asking...
#playlist {style here! important; etc etc}
#playlist h2 { style here! important; etc etc}
paste it in css???
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"
and this for j.s??? 
-Offline- |

css ext.
#playlist {style here! important; etc etc}
#playlist h2 { style here! important; etc etc}js ext.
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"-Offline- |

Thanks again for sharing even more short and simple codes


+Online+ |

thanks dale!!
and also 4 swit....
Last edited by dreamcaster (2008-02-09 04:35:08)
-Offline- |
I tried this amazing codes, but how do i add the border to my new box?
-Offline- |

if u want to apply css 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:
#playlist {style here! important; etc etc}
#playlist h2 { style here! important; etc etc}


like this?
#playlist {border: 2px solid #000000; !important;}
-Offline- |

flint_hydz wrote:
like this?
Code:
#playlist {border: 2px solid #000000; !important;}
#playlist {border: 2px solid #000000! important;}


is this working?

-Offline- |
How about if i want to add more boxes? Can anybody show the full codes? thank you~
I tried the codes but the new addbox seems to combine with the box below. so how?
Last edited by ameng (2008-02-13 05:42:14)
-Offline- |

ameng wrote:
How about if i want to add more boxes? Can anybody show the full codes? thank you~
I tried the codes but the new addbox seems to combine with the box below. so how?
1st:
to add more then repeat the process
eg :
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"
x1=document.createElement("div");
x1.id="anotherekek";
document.getElementById("ur area here").parentNode.appendChild(x1);
anotherekek.innerHTML="<h2>My Ewan</h2>"
+"complete embed code here / chatbox / slide whatever"
}
setTimeout("addbox()",1000)
2nd:
just simply add margin-bottom:__px!important; to ur css...depending to the id u use ...
@ dimee.. dont spam pls.. wakoko put away ur finger tips from ur keyboard if u cant really express ur tot..
@ i forgot... dont asked if its working try it first before u complain okie...
just a word of wisdom wakoko ... oppsie advice i may say
Last edited by switpotato (2008-02-13 07:39:32)


nice short codes you hav there!
thanks for sharing wid us 
-Offline- |