sir, could you please check my code?
i translated your code to the addbox 3.1.1
hahahaha i think ive done it wrong but i donno where to start.

[quote]//onload handler
function onProfileLoad() {
//insert generated boxes here
var thefray="The Fray Download Center";
var download="<div align=\"left\"><object width=\"300\" height=\"340\"><param name=\"movie\" value=\"http://media.imeem.com/pl/aXmxSo7B4K/aus=false/\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://media.imeem.com/pl/aXmxSo7B4K/aus=false/\" type=\"application/x-shockwave-flash\" width=\"300\" height=\"340\" wmode=\"transparent\"></embed></object><br><div id='shows' style='display:inline;background-color:none;border:none;font-family:Papyrus;font-weight:bold;font-size:11;'><a title='Open Download Center'><input style=\"padding: 3px 0; margin: 8px 0 6px 0;font-family:Papyrus;font-weight:bold;color:#ff0033;border:2px inside #00ffff;background-color:black\" type=\"button\" onClick=\"javascript:showForm();\" value=\"Download Area +\"></a></div><div id='closes' style='display:none;background-color:none;border:none;font-family:Papyrus;font-weight:bold;font-size:11;'><a title='Close Download Center'><input style=\"padding: 3px 0; margin: 8px 0 6px 0;font-family:Papyrus;font-weight:bold;color:#ff0033;border:2px inside #00ffff;background-color:black\" type=\"button\" onClick=\"javascript:hideForm();\" value=\"Download Area -\"></a></div><br><div id='hides' style='display: none'><table width='100%' border='0'><td align='center'><div style='background:url() fixed center; border:2px groove #ff0033;'><br><div align=\"center\"><font color= '#00ff00'><b>Enjoy My Music..</b><br><b>Download it for free</b><br><b>More music to be added soon</b></font><br><form name='d110'><p><select name='d437' size='1'><option selected value='http://neorom1.free.fr/zik/fray-howtosavealife.mp3'>The Fray - How To Save A Life</option><option value='http://kietouney.free.fr/02-the_fray-over_my_head_(cable_car).mp3'>The Fray - Over My Head (Cable Car)</option><option value='http://cobyte.free.fr/Musique/Rock/the%20fray/The%20Fray%20-%20She%20Is.mp3'>The Fray - She Is</option><option value='http://www.infrarouge.nu/trax/the_fray_-_look_after_you.mp3'>The Fray - Look After You</option><option value='http://www.philenders.com/misc/08-the_fray-hundred.mp3'>The Fray - Hundred</option><option value='http://cobyte.free.fr/Musique/Rock/the%20fray/The%20Fray%20-%20Trust%20Me.mp3'>The Fray - Trust Me</option><option value='http://cobyte.free.fr/Musique/Rock/the%20fray/The%20Fray%20-%20Oceans%20Away.mp3'>The Fray - Oceans Away</option></select><input style=\"padding: 2px 0; margin: 0 0 0 0;font-family:Papyrus;font-weight:bold;color:#ff0033;border:2px inside #00ffff;background-color:black\" type=\"button\" value=\"Download Mp3\" onClick='location=document.d110.d437.options[document.d110.d437.selectedIndex].value'></p></form></div>";
addBox(thefray,download,"custombox_479",/standalonebox[\s]*?meetrail/i);
}
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
function addBox(head,code,id,siblingafter) {
/*
head:
html string title
null - no header bar
code:
html string content
id:
unique string css pointer
siblingafter:
regexp classname
'left' - mainbar column end
'right' - sidebar column end
*/
try {
var li=document.createElement("li");
} catch(e) {
var li=document.createElement("<li>");
}
if(!head) head="";
else head="<h2>"+head+"</h2>";
li.innerHTML="<div id=\""+id+"\" class=\"commonbox "+id+"\">"+
head+
"<div id=\"content_"+id+"\">"+
code+
"</div>"+
"</div>";
if(siblingafter=="left") getElementsByClass(/commonbox[\s]*?controlpanel/i,null,"DIV")[0].parentNode.parentNode.appendChild(li);
else if(siblingafter=="right") getElementsByClass(/commonbox[\s]*?friends/i,null,"DIV")[0].parentNode.parentNode.appendChild(li);
else {
var si=getElementsByClass(siblingafter,null,"DIV")[0];
si.parentNode.parentNode.insertBefore(li,si.parentNode);
}
}
function getElementsByClass(searchClass,node,tag) {
var classElements = new Array();
if ( node == null )
node = document;
if ( tag == null )
tag = '*';
var els = node.getElementsByTagName(tag);
var elsLen = els.length;
var pattern = new RegExp(searchClass);
for (i = 0, j = 0; i < elsLen; i++) {
if ( pattern.test(els[i].className) ) {
classElements[j] = els[i];
j++;
}
}
return classElements;
}
function showForms()
{
var divs = document.getElementById("hides");
var shows = document.getElementById("shows");
var closes = document.getElementById("closes");
if(divs.style.display!="none")
{
hideForms();
}
else
{
divs.style.display = "block";
shows.style.display = "none";
closes.style.display = "block";
}
}
function hideForms()
{
var divs = document.getElementById("hides");
var shows = document.getElementById("shows");
var closes = document.getElementById("closes");
divs.style.display = "none";
shows.style.display = "block";
closes.style.display = "none";
}
function r(){
return;
}[/quote]
thanks much!