[DesDev] Donation bar up and running!
.jeff
jeff at members.evolt.org
Tue Dec 24 14:32:45 CST 2002
william,
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: William Anderson
>
> I'd be interested in adding this to beo too ... thoughts
> on implementation? Is the bar static, and updated by
> hand?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
just grab the necessary html for the donation bar header. then, make an
http call to http://evolt.org/evolt/donation.txt. the first number is the
total donations needed. the second number is the donations received so far.
use those to find the percentage. take all three pieces of info and put
them in the appropriate places in the donation bar html. using the numbers
from weo will mean you won't have to do anything to make it updateable and
the person updating will only have to update one place.
don't forget to grab the relevant portion of the stylesheet as well:
.donationHeader {
background-color: #3c452c;
color: #c8cfc6;
font-size: 11px;
}
.donationHeader a:link, .donationHeader a:visited, .donationHeader a:hover,
.donationHeader a:active {
color: #c8cfc6;
font-size: 10px;
text-decoration: underline;
}
.donationHeaderChartBG {
background-color: #9aa486;
color: #ffffff;
border: 1px solid #000000;
width: 100%;
height: 13px;
padding: 1px;
font-size: 9px;
margin-top: 4px;
margin-right: 25px;
vertical-align: middle;
font-weight: bold;
}
.donationHeaderChartFG {
background-color: #ffffff;
color: #9aa486;
height: 9px;
font-size: 9px;
display: inline;
vertical-align: middle;
font-weight: bold;
}
holler if you need more than that.
good luck,
.jeff
http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/
More information about the DesDev
mailing list