whew!
what a nice script from a genius guy...
combination of side and main ah..
hmhm... two thumbsup up for you bro..
Last edited by reneanthony (2007-08-06 03:10:31)
will this work even if i already put my cbox at my sidebar??
or i'll remove the code for that??
[b]@xavierkym[/b]
hhmmm.. nice!!!
from [b]GEEK[/b] to [b]MODERATOR!!![/b]
am proud of you man!!!
Last edited by zephyr14 (2007-08-07 23:46:10)
[/quote]
[quote]if ( ! attachOnLoadHandler(function () { loadBox();}))
window.onload = function () { loadBox();};
function loadBox() {
var video="[b]YOUR VIDEO CODE HERE[/b]";
addMainSideBox("[b]YOUR TITLE[/b]",video,"video","[b]friends_2_2[/b]");
var mp3="[b]YOUR MP3 CODE HERE[/b]";
addMainSideBox("[b]YOUR TITLE[/b]",mp3,"mp3","[b]groups_2_5[/b]");
}
function addMainSideBox(header,cont,id,target) {
var tb = document.getElementById(target).parentNode;
var divid="<div id='"+id+"' class='commonbox "+id+"'>"+
"<h2>"+header+"</h2>"+
"<div id='content_"+id+"'>"+
cont+
"</div>"+
"</div>";
var obj = document.createElement("li");
obj.innerHTML=divid;
tb.appendChild(obj);
}[/quote]
Last edited by feruzz (2007-08-08 02:32:32)