Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Dec 17th, 2017, 02:11am


Board Hacks
Important News
Please read the notes posted with any codes carefully, as they will usually tell you where they need to go.
Welcome to the Conforums Hacks Board!

All codes here have been tested but we accept no responsibility if these codes do not work on your board, or have an adverse effect when used in combination with other codes.

This board is read only. Any queries or requests for codes should be made on the Coding Forum

Helpful sites
Google
Dynamic Drive

The Staff
Roger
Dave
GIzzy



« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Custom Individual Member Stars  (Read 1926 times)
Garet
Conforums Elite
Senior Member


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 2070
xx Custom Individual Member Stars
« Thread started on: Jul 6th, 2006, 5:39pm »

Code Created by: Dave

Quote:
<script type="text/javascript">
<!--
var td = document.getElementsByTagName('TD');
var userz,starz,imgz;

function star(userz,starz) {
for(itd=0; itd<td.length; itd++){
if(td[itd].rowSpan=="2" && td[itd].width=="20%") {
if(td[itd].innerHTML.match(/username=(\w+)/i)) {
if(RegExp.$1==userz) {
imgz = td[itd].getElementsByTagName('IMG');
for(img=0; img<imgz.length; img++){
if(imgz[img].alt=="") {
imgz[img].src=starz;
}}}}}}}

if(location.href.match(/=display/)) {
star("username","http://www.yoururl.com/image.gif");
// Add more here
}
// -->
</script>


Board Footers

star("username","http://www.yoururl.com/image.gif")

Repeat these lines as much as needed. Take out the // Add more here as it may cause problems with the code. It's just there to show you where to add more of that line.
« Last Edit: Oct 30th, 2006, 3:38pm by Garet » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls