
Some have ask how I added the image buttons to my profile. For that to work you must use a js file.
You can create any size image you want using ur favorite editor!
Preview at MY Profile!
The sample code I am using here has spaces of 6 buttons and locates the buttons on the bottom of the right side.
If you already have js codes, just insert the addbox code as shown, below ur on handler, do not copy the entire code.
If you only use css right now you should inject your external css code into the js file as shown in the first part of the code below .
Here is how to create the js file.
Just copy this code to your notepad and edit accordingly.
Go to ripway.com and create an account, and then Create A Subfoler called myjs.
Go to ur myjs folder and Create A Text File name it myscripts.js LEAVE IT BLANK.
Open the empty file myscripts.js then copy and paste the code from your notepad to the empty file and save.
You can post the url to ur js file using the current js linker code. Check the underground thread for the latest.
//CSS Injector
var css = document.createElement("link");
css.type = "text/css";
css.rel = "stylesheet";
css.href = "CSS_LINK_HERE";
css.media = "screen, print";
document.getElementsByTagName("head")[0].appendChild(css);
//onload handler
function onProfileLoad() {
//insert generated boxes here
var links="<center><a href='LINK HERE' target='_blank'><img src='LINK OF IMAGE HERE'></a></center> <center><a href='LINK HERE' target='_blank'><img src='LINK OF IMAGE HERE'></a></center> <center><a href='LINK HERE' target='_blank'><img src='LINK OF IMAGE HERE'></a></center> <center><a href='LINK HERE' target='_blank'><img src='LINK OF IMAGE HERE'></a></center> <center><a href='LINK HERE' target='_blank'><img src='LINK OF IMAGE HERE'></a></center> <center><a href='LINK HERE' target='_blank'><img src='LINK OF IMAGE HERE'></a></center>";
addBox("RIGHT","*-mY lInKs :-*",links,"button",null);
}
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;
}
Here is an example of the completed code for the boxes, these are used on my spidy profile.
//Links
var links="<left><a href='http://www.friendster.com/publiccomments.php?uid=30031645' target='_blank'><img src='http://h1.ripway.com/bobcbar/images/spidycomments.gif'></a></left><br><br><br> <left><a href='http://www.friendster.com/sendmessage.php?uid=30031645' target='_blank'><img src='http://h1.ripway.com/bobcbar/images/spidymessage.gif'></a></left><br><br><br> <left><a href='http://www.friendster.com/friends/30031645' target='_blank'><img src='http://h1.ripway.com/bobcbar/images/spidyfriends.gif'></a></left><br><br><br><left><a href='http://bobcbar.123Guestbook.com/' target='_blank'><img src='http://h1.ripway.com/bobcbar/images/spidyguest.gif'</a><br><br><br></left>";
addBox("LEFT","*-mY lInKs :-*",links,"button","10");
Edit the bold with your friendster userid..numbers only not custom code like bobcbar.
CREDITS: Ephemeral for codes to create the link
Marifallster for addbox function codes
Last edited by bobcbar (2008-08-21 01:33:32)

-Offline- |

wow this is cool sir!
thnxx i will use it.. 

nice tick...
thx 4 sharing sir...
gonna try this one.....

mhedge & suddendeath
Thank you for ur nice comments..I did forget to mention others use it and hide their control panel buttons 

-Offline- |
whoa.
that was a very nice profile.
imma try this on my profile.
hope it will work.
-Offline- |

wow bob...now you're tweaking 
nice codes bob
![]()
Very Impressive Bob Your Going places LOL, Thanx for the new Discovery... 

nice:) thanks for sharing
-Offline- |
hi.. thank you for sharing.. My I know where I paste this code..
hehehe..
This is my first time..
Thank you..
-Offline- |
wow....
cool your treed .......
thanks for sharing.....
nice to meet you... ![]()
-Offline- |

Thanks for the great comments, the codes are not mine only how I applied them 

-Offline- |

A big help for tweaking bob..nice profile as well...
@ot..i like to catch crawling spider..
-Offline- |

Thanks lordheinz...
if you catch that spider let me know 

-Offline- |

wow my friend, you have a good job tweaking.
Thanks for sharing your tricks...
-Offline- |

Thanks my friend
hard for me to type right now I broke my right arm yesterday 
Last edited by bobcbar (2008-08-22 11:18:23)

-Offline- |

wow! i like the trick.. it's better if we use it in replacing controloanle buttons..hehe! 




-Offline- |

slashedkite wrote:
it's better if we use it in replacing controloanle buttons
yes that is true! this was popular method before to replace control panel buttons 

-Offline- |
wow bob nice profile huh!!!!
can i ask?
how to put the visitors list in my profile?
-Offline- |

at last you've shared it ...i will try it on my test page.... you didn't include how to make the image buttons...you should have included a live preview....not on your profile cuz newbies like me don't understand or don't know where the 'custom button links' are ...just suggesting my friend
...thanks for sharing....![]()
+Online+ |

thanks 4 sharing da codes sir bob...
remarks: ![]()
![]()
![]()
+ reps
