bigrushdog

goog_checkout

Jun 2nd, 2011
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.85 KB | None | 0 0
  1. <script type="text/javascript">
  2. function validateAmount(amount){
  3.     if(amount.value.match( /^[0-9]+(\.([0-9]+))?$/)){
  4.         return true;
  5.     }else{
  6.         alert('You must enter a valid donation.');
  7.         amount.focus();
  8.         return false;
  9.     }
  10. }
  11. </script>
  12. <form action="https://checkout.google.com/cws/v2/Donations/902802745730475/checkoutForm" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm" onSubmit="return validateAmount(this.item_price_1)" target="_top">
  13.     <input name="item_name_1" type="hidden" value="Support Tiamat Xoom Kernel Development by your favorite dev Bigrushdog"/>
  14.     <input name="item_description_1" type="hidden" value="Hey guys.  As you know, a lot of time and effort goes into building and improving the Tiamat Xoom kernel. Man, I'm thirsty! Won't you buy me a beer? Or a bottle of Patron? ;D  Thank you for your kindness and generosity. God bless.   Randy"/>
  15.     <input name="item_quantity_1" type="hidden" value="1"/>
  16.     <input name="item_currency_1" type="hidden" value="USD"/>
  17.     <input name="item_is_modifiable_1" type="hidden" value="true"/>
  18.     <input name="item_min_price_1" type="hidden" value="0.01"/>
  19.     <input name="item_max_price_1" type="hidden" value="25000.0"/>
  20.     <input name="_charset_" type="hidden" value="utf-8"/>
  21.     <table cellpadding="5" cellspacing="0" width="1%">
  22.         <tr>
  23.             <td align="right" nowrap="nowrap" width="1%">&#x24; <input id="item_price_1" name="item_price_1" onfocus="this.style.color='black'; this.value='';" size="11" style="color:grey;" type="text" value="Enter Amount"/>
  24.             </td>
  25.             <td align="left" width="1%">
  26.                 <input alt="Donate" src="https://checkout.google.com/buttons/donateNow.gif?merchant_id=902802745730475&amp;w=115&amp;h=50&amp;style=white&amp;variant=text&amp;loc=en_US" type="image"/>
  27.             </td>
  28.         </tr>
  29.     </table>
  30. </form>
Advertisement
Add Comment
Please, Sign In to add comment