Post by g0alieb0y on Oct 15, 2005 12:40:10 GMT
This code will display how much money you have and how many Reputation points you have in your Mini Profile. It is very easy to edit and is Cross Browser with no errors!
Preview: Here
Global FOOTERS
_________________________________________________________
<script type="text/javascript">
<!--
/* Easy Edit Money and Reputation 0.1 by g0alieb0y
aliencodes.proboards57.com/index.cgi
Please keep this intact and Please don't repost */
var moneyItalic = "0"; // Italic text? (0 = no, 1 = yes)
var moneyBold = "0"; // Bold text? (0 = no, 1 = yes)
// Below is for Money
var moneyName = "Money:"; // Name before the amount of money
var perPost = "4"; // Amount of money for each post
var moneySymbol = "$"; // Symbol before the amount of money
// Below is for Reputation
var karmaName = "Rep Points:"; // Name before the amount of money
var perKarma = "3" // Amount of rep points per karma
// Dont edit below
if (moneyBold == "0") {
moneyBold = ""; } else {
moneyBold = "<b>"; }
if ( moneyItalic == "0") {
moneyItalic = ""; } else {
moneyItalic = "<i>"; }
var td = document.getElementsByTagName('td');
for ( a=0;a<td.length;a++ ) {
if ( td.width == "20%" && td.innerHTML.match (/Posts/)) {
var postAmount = td.innerHTML.split ("Posts:")[1]
var moneyAmount = parseInt (postAmount) *+perPost
var karmaAmount = td.innerHTML.split ("Karma:")[1]
var karmaMath = parseInt (karmaAmount) *+perKarma
td .innerHTML += "<br>"+moneyItalic+moneyBold+moneyName+"</b></i> "+moneySymbol+moneyAmount+"<br>"+moneyItalic+moneyBold+karmaName+"</i></b> "+karmaMath;
}
}
//-->
</script>
_________________________________________________________
You can probably just look and see what to edit...
Edit the Variables untill it says 'Don't Edit Below'.
~gb0y
Preview: Here
Global FOOTERS
_________________________________________________________
<script type="text/javascript">
<!--
/* Easy Edit Money and Reputation 0.1 by g0alieb0y
aliencodes.proboards57.com/index.cgi
Please keep this intact and Please don't repost */
var moneyItalic = "0"; // Italic text? (0 = no, 1 = yes)
var moneyBold = "0"; // Bold text? (0 = no, 1 = yes)
// Below is for Money
var moneyName = "Money:"; // Name before the amount of money
var perPost = "4"; // Amount of money for each post
var moneySymbol = "$"; // Symbol before the amount of money
// Below is for Reputation
var karmaName = "Rep Points:"; // Name before the amount of money
var perKarma = "3" // Amount of rep points per karma
// Dont edit below
if (moneyBold == "0") {
moneyBold = ""; } else {
moneyBold = "<b>"; }
if ( moneyItalic == "0") {
moneyItalic = ""; } else {
moneyItalic = "<i>"; }
var td = document.getElementsByTagName('td');
for ( a=0;a<td.length;a++ ) {
if ( td.width == "20%" && td.innerHTML.match (/Posts/)) {
var postAmount = td.innerHTML.split ("Posts:")[1]
var moneyAmount = parseInt (postAmount) *+perPost
var karmaAmount = td.innerHTML.split ("Karma:")[1]
var karmaMath = parseInt (karmaAmount) *+perKarma
td .innerHTML += "<br>"+moneyItalic+moneyBold+moneyName+"</b></i> "+moneySymbol+moneyAmount+"<br>"+moneyItalic+moneyBold+karmaName+"</i></b> "+karmaMath;
}
}
//-->
</script>
_________________________________________________________
You can probably just look and see what to edit...
Edit the Variables untill it says 'Don't Edit Below'.
~gb0y