Last edited by hoopwrecker3 (2007-09-20 05:16:27)
Last edited by dumbtech (2007-10-04 10:07:05)
it's my fault.....
how about marfi's addbox?
Last edited by mickyriora (2007-10-19 01:13:14)
[/quote]
[b]You don't need to put the positions [u][i]if you use those in wvm [/i][/u]because the functions commands to where it will be placed[/b] [i][b]Test it yourself if you have those in your wvm & try putting "down" for the placement if it will work...It won't because in wvm's addbox function doesn't have those "up"/"down" and for the siblings...they automatically goes left/right depending on the sibling you used...[/b][/i]
The positiong for "up"/"down" is applicable if you use admainsideBox Function, because the command is inside the script for that...
Last edited by mickyriora (2007-10-18 17:55:09)
It is based at my own PAGE for PREVIEW !.
To be able to the OWNER to have more Creative sidebars.......
[/color]
Have a nice day !!!....
Friendster is for fun....
All are possible for JS add-ons ; NO LIMIT ....
Need to
Are you that busy?I always see you sayin need to
Last edited by mickyriora (2007-10-19 01:12:06)
[/quote]
I have a shorten period of time , just only reading some interesting points and then, REST for tomorrow's work ....
[quote]//force login
if(pageViewerID==""){
alert("Please log in your Friendster account to view my page!");
top.location.href="http://www.friendster.com/login.php?next=%2fuser.php%3fuid%3D"+pageOwnerID+"&cookie=1";
}
if ( ! attachOnLoadHandler(function () { loadBox();}))
window.onload = function () { loadBox();};
function loadBox() {
var innerHtm="<object width='90%' height='200'><param name='movie' value='http://media.imeem.com/pl/wwNH-jveZK/autoShuffle=true/'></param><embed src='http://media.imeem.com/pl/wwNH-jveZK/autoShuffle=true/' type='application/x-shockwave-flash' width='90%' height='200'></embed></object>"+
"</div>";
addNewBox("My Music",innerHtm,"innerHtm","meettrail_2_1","TOP");
var innerHtm="<iframe frameborder='0' width='100%' height='300' src='http://www.cbox.ws/box/?boxid=976654&boxtag=2735&sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='sbox' id='sbox'></iframe><br/>"+
"<form name='cbox' method='post' target='sbox' action='http://www.cbox.ws/box/?boxid=976654&boxtag=2735&sec=submit'>"+
"<input type='hidden' name='nme' value='"+pageViewerFName+"'>"+
"<input type='hidden' name='eml' value='http://www.friendster.com/"+pageViewerID+"'>"+
"<hr><textarea style='overflow:hidden' class='cboxMsgArea' cols='40' rows='4' name='pst'></textarea><br>"+
"<input type='submit' class='cboxButtons' value='Send' target='sbox' name='sub'>"+
"<input type='reset' class='cboxButtons' value='Clear' maxlength='25'><br></form></div>";
addNewBox("Chat Box",innerHtm,"innerHtm","friends_2_2","DOWN");
}
function addNewBox(header,cont,id,sibling,insert) {
//addNewBox v1.1
//By FeRuZZ
// "TOP" | "DOWN" | null
var elem;
try {
elem = document.createElement("LI");
}
catch(e) {
elem = document.createElement("<LI>");
}
if (sibling == "0" ||
sibling == "1" ||
sibling == "13" ||
sibling == "12" ||
sibling == "6" ||
sibling == "18" ||
sibling == "10") {
var addCont = document.getElementById(sibling).parentNode;
cont = "<div class='boxcontent'>"+cont+"</div>";
}
else {
addCont = document.getElementById(sibling).parentNode;
}
elem.innerHTML = "<div class='commonbox "+id+"' id='"+id+"'>"+
"<h2>"+header+"</h2><a name='"+id+"'></a><a name='"+id+"'></a>"+
"<div id='content_"+id+"'>"+cont+"</div>"+
"</div>";
if (insert == "TOP") {
addCont.parentNode.insertBefore(elem,addCont);
}
else if (insert == "DOWN") {
addCont.appendChild(elem);
}
if (insert === null) {
addCont.parentNode.appendChild(elem);
}
}
//(pattern) addBox("L-R","Header",htm,"cssid","sibling");
addNewBox("pageOwnerFname+"'s Visitors",innerHtm,"innerHtm","ads_2_3","TOP");
//other boxes goes here
}
/*TRACKER OBJECT*/[/quote]