Время:
Новых сообщений: Нет
Вы на форуме дней
Ваша группа: Гость
Ваш IP: 18.216.111.153
Logical-Portal — молодежный портал со своей изюминкой, каждый сможет найти что-то интересное и полезное для себя, например наш форум общения с которым вам обязательно нужно ознакомиться.
  • Страница 1 из 1
  • 1
Модератор форума: Hawk  
Калькулятор
Сообщение оставлено 25.08.2012 в 13:48:02 | Сообщение #1
Привет подскажите как сделать калькулятор для сайта
Пример:

Есть ли такой скрипт и в какой модуль его вставлять.
Помогите найти такой же скрипт и дайте пожалуйста инструкцию как сделать.
За ранее Спасибо.
 
Брат за брата, такое за основу взято...
 
   
Сообщение оставлено 26.08.2012 в 00:33:55 | Сообщение #2
3meiqa, где ты там калькулятор увидел?
 
Увидимся...
 
   
Сообщение оставлено 26.08.2012 в 02:23:07 | Сообщение #3
Quote (AdWise)
где ты там калькулятор увидел?

где кнопка "Оформить заказ" вот тут кальк.
 
 
   
Сообщение оставлено 26.08.2012 в 11:26:37 | Сообщение #4
AdWise, хаха ты слепой что ли?) =) Или не знаешь как он выглядит?
 
Брат за брата, такое за основу взято...
 
   
Сообщение оставлено 09.09.2012 в 23:58:32 | Сообщение #5
From source:
html:
Code
   <form method="POST" action="/order/" onsubmit="return calc.preSubmitCheck();">

       <table style="margin-left: 20px;">

        <tr>

         <td colspan="4">

          <table width="100%" cellpadding="0" cellspacing="0">

                              <tr>

                              <td style="width: 50%;color: #555553;">Сервер</td>

                              <td style="width: 50%;color: #555553;">Способ оплаты</td>

                              </tr>

                              <tr>

                              <td style="width: 50%;">

                              <select name="servers" id="sclt_srvers" onchange="calc.updateReceiveMoneyValue();">

                              <option value="62">Athebaldt</option>

                              <option value="64">Blackbird</option>

                              <option value="65">Cadmus</option>

                              <option value="66">Esthus</option>

                              <option value="67">Ramsheart</option>

                              <option value="68">Faris</option>

                              <option value="69">Lancer</option>

                              <option value="70">Waytrel</option>

                              <option value="71">Vasper</option>

                              <option value="72">Desperion</option>

                              <option value="158">Atlant</option>

                              <option value="161">Airin</option>

                              <option value="164">Van Holter</option>

                              <option value="167">Erica</option>

                              </select>

                              </td>

                              <td style="width: 50%;">

                              <select name="payment_method" id="current_currency_id" onchange="calc.paymentCurrencyChanged();" style="width: 98%;">

                              <option label="QIWI" value="qiwi">QIWI</option>
<option label="Яндекс.Деньги" value="ya">Яндекс.Деньги</option>
<option label="WMR (Webmoney)" value="robo.wmr">WMR (Webmoney)</option>
<option label="WMU (Webmoney)" value="robo.wmu">WMU (Webmoney)</option>
<option label="WMZ (Webmoney)" value="robo.wmz">WMZ (Webmoney)</option>
<option label="WME (Webmoney)" value="robo.wme">WME (Webmoney)</option>
<option label="Visa/Mastercard" value="robo.wc">Visa/Mastercard</option>
<option label="Visa/Mastercard (QIWI)" value="qiwi.cc">Visa/Mastercard (QIWI)</option>
<option label="Visa/Mastercard (LiqPay)" value="liqpay">Visa/Mastercard (LiqPay)</option>
<option label="Со счета мобильного телефона МТС" value="robo.mts">Со счета мобильного телефона МТС</option>
<option label="Со счета мобильного телефона Мегафон" value="robo.megafon">Со счета мобильного телефона Мегафон</option>
<option label="Наличные (Любые терминалы)" value="elecs">Наличные (Любые терминалы)</option>
<option label="WMZ-карта" value="wmz-card">WMZ-карта</option>
<option label="WMR-карта" value="wmr-card">WMR-карта</option>
<option label="WMU-карта" value="wmu-card">WMU-карта</option>
<option label="WME-карта" value="wme-card">WME-карта</option>
<option label="Другие способы оплаты..." value="robo.default">Другие способы оплаты...</option>
                              </select>

                              <input type="hidden" value="wmz" id="cur_list_prev_value" />

                              </td>

                              </tr>

          </table>

         </td>

        </tr>

        <tr>

         <td colspan="4" style="color: #555553;">

          <label>e-mail (для скидки)<br />  

          <input type="text" name="discount_email" autocomplete="off"  value="" style="width: 300px;" id="id_discount_email" onkeyup="calc.updateDiscountInfo(event);"/>

          </label>

          <img src="/img/ajax-loader.gif" id="currency_calc_loader_id" style="display: none;"/>

         </td>

        </tr>

        <tr>

         <td style="color: #555553;" colspan="2"><b style="color: #555553; font-size: 11px;">Заплачу:</b></td>

         <td style="color: #555553;" colspan="2"><b style="color: #555553; font-size: 11px;">Получу  ( x 1 млн.):</b></td>

        </tr>

        <tr>

         <td style="color: #555553; vertical-align: middle; padding-top: 3px;">

          <input type="text" name="send" id="txt_pay_amount" onblur="calc.updateReceiveMoney(event);" onkeyup="calc.updateReceiveMoney(event);" style="width: 85px; color: #000000; text-align: right; vertical-align: middle;" value="0.00"/>

         </td>

         <td style="vertical-align: top;">  <img src="/img/arrow_r.gif" /> </td>

         <td style="color: #555553; vertical-align: middle; padding-top: 3px;">

          <input type="text" name="receive" id="txt_receive_amount" onblur="calc.updateSendMoney(event);" onkeyup="calc.updateSendMoney(event);" style="width: 85px; color: #000000; text-align: right; vertical-align: middle;"  value="0.00"/>

         </td>

         <td>

           <input type="image" src="/img/complete_order.gif" />

         </td>

        </tr>

        <tr>

         <td colspan="4" id="calc_info_text" style="font-size: 10px;">

         </td>

        </tr>

       </table>

       <input type="hidden" name="game_id" value="2" />

       <input type="hidden" name="action" value="orderProcessOrder" />

       </form>

scripts:
Code
   <script type="text/javascript">

     var _srvr_prices = {"62":[{"buy_more_then":"0.00","item_price":"0.1500","item_bonus":"0.00","display_in_table":"0"},{"buy_more_then":"1.10","item_price":"0.1090","ite m_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"12.00","item_price":"0.1080","item_bonus":"0.00","display_in_table":"1"},{"buy_mor e_then":"59.00","item_price":"0.1070","item_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"115.00","item_price":"0.1060","item_bonu s":"0.00","display_in_table":"1"},{"buy_more_then":"1000.00","item_price":"0.1050","item_bonus":"0.00","display_in_table":"0"}],"64":[{"buy_more_then":"0.00","item_price":"0.1500","item_bonus":"0.00","display_in_table":"0"},{"buy_more_then":"1.10","item_price":"0.1210","ite m_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"12.00","item_price":"0.1190","item_bonus":"0.00","display_in_table":"1"},{"buy_mor e_then":"59.00","item_price":"0.1170","item_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"115.00","item_price":"0.1150","item_bonu s":"0.00","display_in_table":"1"},{"buy_more_then":"1000.00","item_price":"0.1140","item_bonus":"0.00","display_in_table":"0"}],"65":[{"buy_more_then":"0.00","item_price":"0.1500","item_bonus":"0.00","display_in_table":"0"},{"buy_more_then":"1.10","item_price":"0.1210","ite m_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"12.00","item_price":"0.1190","item_bonus":"0.00","display_in_table":"1"},{"buy_mor e_then":"59.00","item_price":"0.1170","item_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"115.00","item_price":"0.1150","item_bonu s":"0.00","display_in_table":"1"},{"buy_more_then":"1000.00","item_price":"0.1140","item_bonus":"0.00","display_in_table":"0"}],"66":[{"buy_more_then":"0.00","item_price":"0.1500","item_bonus":"0.00","display_in_table":"0"},{"buy_more_then":"1.10","item_price":"0.1090","ite m_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"12.00","item_price":"0.1080","item_bonus":"0.00","display_in_table":"1"},{"buy_mor e_then":"59.00","item_price":"0.1070","item_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"115.00","item_price":"0.1060","item_bonu s":"0.00","display_in_table":"1"},{"buy_more_then":"1000.00","item_price":"0.1050","item_bonus":"0.00","display_in_table":"0"}],"67":[{"buy_more_then":"0.00","item_price":"0.1500","item_bonus":"0.00","display_in_table":"0"},{"buy_more_then":"1.10","item_price":"0.1090","ite m_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"12.00","item_price":"0.1080","item_bonus":"0.00","display_in_table":"1"},{"buy_mor e_then":"59.00","item_price":"0.1070","item_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"115.00","item_price":"0.1060","item_bonu s":"0.00","display_in_table":"1"},{"buy_more_then":"1000.00","item_price":"0.1050","item_bonus":"0.00","display_in_table":"0"}],"68":[{"buy_more_then":"0.00","item_price":"0.1500","item_bonus":"0.00","display_in_table":"0"},{"buy_more_then":"1.10","item_price":"0.1090","ite m_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"12.00","item_price":"0.1080","item_bonus":"0.00","display_in_table":"1"},{"buy_mor e_then":"59.00","item_price":"0.1070","item_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"115.00","item_price":"0.1060","item_bonu s":"0.00","display_in_table":"1"},{"buy_more_then":"1000.00","item_price":"0.1050","item_bonus":"0.00","display_in_table":"0"}],"69":[{"buy_more_then":"0.00","item_price":"0.1500","item_bonus":"0.00","display_in_table":"0"},{"buy_more_then":"1.10","item_price":"0.1090","ite m_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"12.00","item_price":"0.1080","item_bonus":"0.00","display_in_table":"1"},{"buy_mor e_then":"59.00","item_price":"0.1070","item_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"115.00","item_price":"0.1060","item_bonu s":"0.00","display_in_table":"1"},{"buy_more_then":"1000.00","item_price":"0.1050","item_bonus":"0.00","display_in_table":"0"}],"70":[{"buy_more_then":"0.00","item_price":"0.1500","item_bonus":"0.00","display_in_table":"0"},{"buy_more_then":"1.10","item_price":"0.1090","ite m_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"12.00","item_price":"0.1080","item_bonus":"0.00","display_in_table":"1"},{"buy_mor e_then":"59.00","item_price":"0.1070","item_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"115.00","item_price":"0.1060","item_bonu s":"0.00","display_in_table":"1"},{"buy_more_then":"1000.00","item_price":"0.1050","item_bonus":"0.00","display_in_table":"0"}],"71":[{"buy_more_then":"0.00","item_price":"0.1500","item_bonus":"0.00","display_in_table":"0"},{"buy_more_then":"1.10","item_price":"0.1210","ite m_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"12.00","item_price":"0.1190","item_bonus":"0.00","display_in_table":"1"},{"buy_mor e_then":"59.00","item_price":"0.1170","item_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"115.00","item_price":"0.1150","item_bonu s":"0.00","display_in_table":"1"},{"buy_more_then":"1000.00","item_price":"0.1140","item_bonus":"0.00","display_in_table":"0"}],"72":[{"buy_more_then":"0.00","item_price":"0.1500","item_bonus":"0.00","display_in_table":"0"},{"buy_more_then":"1.10","item_price":"0.1210","ite m_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"12.00","item_price":"0.1190","item_bonus":"0.00","display_in_table":"1"},{"buy_mor e_then":"59.00","item_price":"0.1170","item_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"115.00","item_price":"0.1150","item_bonu s":"0.00","display_in_table":"1"},{"buy_more_then":"1000.00","item_price":"0.1140","item_bonus":"0.00","display_in_table":"0"}],"158":[{"buy_more_then":"0.00","item_price":"0.1500","item_bonus":"0.00","display_in_table":"0"},{"buy_more_then":"1.10","item_price":"0.1210","ite m_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"12.00","item_price":"0.1190","item_bonus":"0.00","display_in_table":"1"},{"buy_mor e_then":"59.00","item_price":"0.1170","item_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"115.00","item_price":"0.1150","item_bonu s":"0.00","display_in_table":"1"},{"buy_more_then":"1000.00","item_price":"0.1140","item_bonus":"0.00","display_in_table":"0"}],"161":[{"buy_more_then":"0.00","item_price":"0.1500","item_bonus":"0.00","display_in_table":"0"},{"buy_more_then":"1.10","item_price":"0.1090","ite m_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"12.00","item_price":"0.1080","item_bonus":"0.00","display_in_table":"1"},{"buy_mor e_then":"59.00","item_price":"0.1070","item_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"115.00","item_price":"0.1060","item_bonu s":"0.00","display_in_table":"1"},{"buy_more_then":"1000.00","item_price":"0.1050","item_bonus":"0.00","display_in_table":"0"}],"164":[{"buy_more_then":"0.00","item_price":"0.1500","item_bonus":"0.00","display_in_table":"0"},{"buy_more_then":"1.10","item_price":"0.1090","ite m_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"12.00","item_price":"0.1080","item_bonus":"0.00","display_in_table":"1"},{"buy_mor e_then":"59.00","item_price":"0.1070","item_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"115.00","item_price":"0.1060","item_bonu s":"0.00","display_in_table":"1"},{"buy_more_then":"1000.00","item_price":"0.1050","item_bonus":"0.00","display_in_table":"0"}],"167":[{"buy_more_then":"0.00","item_price":"0.1500","item_bonus":"0.00","display_in_table":"0"},{"buy_more_then":"1.10","item_price":"0.1210","ite m_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"12.00","item_price":"0.1190","item_bonus":"0.00","display_in_table":"1"},{"buy_mor e_then":"59.00","item_price":"0.1170","item_bonus":"0.00","display_in_table":"1"},{"buy_more_then":"115.00","item_price":"0.1150","item_bonu s":"0.00","display_in_table":"1"},{"buy_more_then":"1000.00","item_price":"0.1140","item_bonus":"0.00","display_in_table":"0"}]};

     var _srvr_min_max = {"62":{"bmin":40000000,"bmax":2000000000},"64":{"bmin":40000000,"bmax":3000000000},"65":{"bmin":40000000,"bmax":1000000000},"66":{"bmin":400 00000,"bmax":2000000000},"67":{"bmin":40000000,"bmax":2000000000},"68":{"bmin":40000000,"bmax":2000000000},"69":{"bmin":40000000,"bmax":4000 000000},"70":{"bmin":40000000,"bmax":2000000000},"71":{"bmin":40000000,"bmax":1000000000},"72":{"bmin":40000000,"bmax":1000000000},"158":{"b min":40000000,"bmax":1195000000},"161":{"bmin":40000000,"bmax":2000000000},"164":{"bmin":40000000,"bmax":2000000000},"167":{"bmin":40000000, "bmax":1000000000}};

     var _curr_cross_cources = {"usd2rur":30,"usd2eur":0.75,"usd2uah":8};

      

     var calc = new paymentCalculator(_srvr_prices, _curr_cross_cources, 1000000, '1 млн.', _srvr_min_max);

    </script>
 
   
Сообщение оставлено 10.09.2012 в 00:05:03 | Сообщение #6
ой, это наверное не весь код. там много яваскрипта. а самое главное, если ты хочешь сделать такой же калькулятор, то зачем тебе готовый ? если сам не умеешь делать, то и готовый не поможет.)))
 
   
Сообщение оставлено 10.09.2012 в 05:49:52 | Сообщение #7
Liiion911, полностью солидарен с тобой))
 

Костюм должен быть итальянский.
Машина немецкая.
Жена русская.
 
   
Сообщение оставлено 29.10.2012 в 14:59:59 | Сообщение #8
Закрыто, тема устарела.
 

Костюм должен быть итальянский.
Машина немецкая.
Жена русская.
 
   
  • Страница 1 из 1
  • 1
Поиск:
 
Графика от: Megas, GraFOS | Дизайн сверстал E.A.
Хостинг от uCoz
Яндекс.Метрика