checkout_payment.js
来自「this the oscommerce 3.0 aplha 4」· JavaScript 代码 · 共 56 行
JS
56 行
/* $Id: checkout_payment.js 1498 2007-03-29 14:04:50Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2006 osCommerce This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 (1991) as published by the Free Software Foundation.*/var selected;function selectRowEffect(object, buttonSelect) { if (!selected) { if (document.getElementById) { selected = document.getElementById('defaultSelected'); } else { selected = document.all['defaultSelected']; } } if (selected) selected.className = 'moduleRow'; object.className = 'moduleRowSelected'; selected = object;// one button is not an array if (document.checkout_payment.payment_method[0]) { document.checkout_payment.payment_method[buttonSelect].checked=true; } else { document.checkout_payment.payment_method.checked=true; }}function mod10(number) { var nCheck = 0; var nDigit = 0; var bEven = false; for (n = number.length - 1; n >= 0; n--) { var cDigit = number.charAt(n); var nDigit = parseInt(cDigit, 10); if (bEven) { if ((nDigit *= 2) > 9) { nDigit -= 9; } } nCheck += nDigit; bEven = !bEven; } return (nCheck % 10) == 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?