Код |
---|
<input type="image" src="/images/oformitzakaz.jpg" value="<?= GetMessage("SALE_ORDER")?>" name="BasketOrder_img"> <input type="hidden" value="<?= GetMessage("SALE_ORDER")?>" name="BasketOrder"> |
Код |
---|
в style.css: input.refresh_button { background-color: transparent; background-image: url('/images/refresh.jpg'); background-repeat: no-repeat; background-position: left top; border: none; width: 100px; height: 30px; } input.order_button { background-color: transparent; background-image: url('/images/oformitzakaz.jpg'); background-repeat: no-repeat; background-position: left top; border: none; width: 100px; height: 30px; } в basket_items.php: <input type="submit" value=" " class="refresh_button" name="BasketRefresh" /> ... <input type="submit" value=" " class="order_button" name="BasketOrder" /> |
Код |
---|
в script.js: function set_value(input_id) { document.getElementById(input_id).value = "Y"; } в basket_items.php: <input onclick="set_value('BasketOrder')" type="image" src="/images/oformitzakaz.jpg" name="BasketOrder_img" /> <input id="BasketOrder" type="hidden" value="" name="BasketOrder" /> <input onclick="set_value('BasketRefresh')" type="image" src="/images/oformitzakaz.jpg" name="BasketRefresh_img" /> <input id="BasketRefresh" type="hidden" value="" name="BasketRefresh" /> |