do you have a generator for this trick??
is this correct?
if(document.location.href.match(/profiles\./)) document.location.href = document.location.href.replace(/profiles\./, "www.");
function onProfileLoad() {
if ( ! attachOnLoadHandler(function () { loadBox();}))
window.onload = function () { loadBox();};
function loadBox() {
var cbox="<!-- BEGIN CBOX -
www.cbox.ws -->
<div align="center" id="cboxdiv">
<iframe frameborder=’0’ width=’150’ height=’100’ src=’http://www4.cbox.ws/box/?boxid=3106326&boxtag=6229&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=’150’ height=’75’ src=’http://www4.cbox.ws/box/?boxid=3106326&boxtag=6229&sec=form’ marginheight=’2’ marginwidth=’2’ scrolling=’no’ allowtransparency=’yes’ name=’cboxform’ style=’border:#DBE2ED 1px solid;border-top:0px’ id=’cboxform’></iframe>
</div>
<!-- END CBOX -->";
addMainSideBox("LoVe nOteS",cbox,"cbox","friends_2_2");
var mp3="<object width=’300’ height=’290’><param name=’movie’ value=’http://media.imeem.com/pl/KOQzj4sG2-/autoShuffle=true/’></param><param name=’wmode’ value=’transparent’></param><embed src=’http://media.imeem.com/pl/KOQzj4sG2-/autoShuffle=true/’ type=’application/x-shockwave-flash" width=’300’ height=’290’ wmode=’transparent’></embed></object>";
addMainSideBox("mUsiC bOx",mp3,"mp3","photos_1_2");
}
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);
}
//onload handler
Last edited by LiEzL (2007-09-05 01:12:49)