Re: [quote][b][color=red]Revision [Feb 21, 2009][/color][/b][/quote]
[b]Screenshot[/b]
[img]http://img508.imageshack.us/img508/5809/customfnameiw8.jpg[/img]
[b]Code[/b]
[quote](function(){
var a,b,c;
[quote=feruzz]Preview
[img]http://img508.imageshack.us/img508/5809/customfnameiw8.jpg[/img]
[quote]Code
if (typeof CFNAMES == "undefined") { CFNAMES = {}; }
CFNAMES = {
getData: null,
sibling: null,
init: function() {
CFNAMES.getData = document.createElement("ul");
CFNAMES.getData.setAttribute("class","data");
CFNAMES.getData.innerHTML = "<li><span class=\"q\">YOUR TEXT</span></li>"+
"<li><span class=\"q\">YOUR TEXT</span></li>"+
"<li><span class=\"q\">YOUR TEXT</span></li>"+
"<li><span class=\"q\">YOUR TEXT</span></li>"+
"<li><span class=\"q\">YOUR TEXT</span></li>"+
"<li><span class=\"q\">YOUR TEXT</span></li>"+
"<li><span class=\"q\">YOUR TEXT</span>"+
"<a style=\"font-weight: normal;\" href=\"/YOUR TEXT\">YOUR TEXT</a></li>";
CFNAMES.sibling = CFNAMES.getElementsByClassName(document.getElementById("content_0"),"ul","data")[0];
CFNAMES.sibling.parentNode.replaceChild(CFNAMES.getData,CFNAMES.sibling);
},
getElementsByClassName: function(oElm,sTag,sClass) {
var elm = [];
if (!oElm)oElm = document;
if (!sTag)sTag = "*";
var els = oElm.getElementsByTagName(sTag) || document.all;
for (var i=0,j=els.length;i<j;i++) {
if (new RegExp(sClass).test(els[i].className))elm.push(els[i]);
}
return elm;
}
};CFNAMES.init();[/quote]
you can also add a bullets....here's example
if (typeof CFNAMES == "undefined") { CFNAMES = {}; }
CFNAMES = {
getData: null,
sibling: null,
init: function() {
CFNAMES.getData = document.createElement("ul");
CFNAMES.getData.setAttribute("class","data");
CFNAMES.getData.innerHTML = "<li><span class=\"q\"><img src=\"YOUR BULLET URL\"> YOUR TEXT</span></li>"+
"<li><span class=\"q\"><img src=\"YOUR BULLET URL\"> YOUR TEXT</span></li>"+
"<li><span class=\"q\"><img src=\"YOUR BULLET URL\"> YOUR TEXT</span></li>"+
"<li><span class=\"q\"><img src=\"YOUR BULLET URL\"> YOUR TEXT</span></li>"+
"<li><span class=\"q\"><img src=\"YOUR BULLET URL\"> YOUR TEXT</span></li>"+
"<li><span class=\"q\"><img src=\"YOUR BULLET URL\"> YOUR TEXT</span></li>"+
"<li><span class=\"q\">My URL: </span>"+
"<a style=\"font-weight: normal;\" href=\"/YOURUSERNAME\">http://profiles.friendster.com/YOURUSERNAME</a></li>";
CFNAMES.sibling = CFNAMES.getElementsByClassName(document.getElementById("content_0"),"ul","data")[0];
CFNAMES.sibling.parentNode.replaceChild(CFNAMES.getData,CFNAMES.sibling);
},
getElementsByClassName: function(oElm,sTag,sClass) {
var elm = [];
if (!oElm)oElm = document;
if (!sTag)sTag = "*";
var els = oElm.getElementsByTagName(sTag) || document.all;
for (var i=0,j=els.length;i<j;i++) {
if (new RegExp(sClass).test(els[i].className))elm.push(els[i]);
}
return elm;
}
};CFNAMES.init();[/quote]
Can I Make them both mixed??? i meant to make them both in one js file.
thx