: how to add color to "Taken" and "Available" : seachen June 04, 2009, 06:07:52 PM Hi sir,
May i know how to add color to "Taken" and "Available"? Can somebody provide the guide.. Thanks. : Re: how to add color to "Taken" and "Available" : mikek June 05, 2009, 08:59:56 AM That would require some custom programming. The module doesn't output separate class names for each option.
: Re: how to add color to "Taken" and "Available" : rammon October 23, 2012, 02:03:41 AM A simple solution is to replace this code:
function showDomainResult($domain,$server,$findText) { if (checkDomain($domain,$server,$findText)) { echo "<div style='margin-bottom:4px'>$domain Available</div>"; } else echo "<div style='margin-bottom:4px'>$domain Taken</div>"; } By this other code: function showDomainResult($domain,$server,$findText) { if (checkDomain($domain,$server,$findText)) { echo "<div style='margin-bottom:4px;color:green'>$domain Available</div>"; } else echo "<div style='margin-bottom:4px;color:red'>$domain Taken</div>"; } |