/* d_shops_js_warenkorb */ function updateWarenkorbKurz() { new Ajax.Updater('warenkorbInhaltKurz', '/sixcms/detail.php', { method: 'get', parameters: { template: 'd_shops_wk_inhalt_kurz'} }); } function epoqWkAktualisierung() { new Ajax.Request('/sixcms/detail.php', { method: 'get', parameters: { template: 'd_shops_wk_json'}, onSuccess: function(transport) { var wk = transport.responseText.evalJSON(true); epoq_productIds = []; epoq_quantities = []; epoq_unitPrices = []; wk.each(function(prod, index) { epoq_productIds[index] = prod.add_id; epoq_quantities[index] = prod.menge; epoq_unitPrices[index] = prod.preis; }); epoq_updateCart(); } }); } function inDenWarenkorb2(addId, shopId, event) { new Ajax.Request('/sixcms/detail.php', { method: 'get', parameters: { template: 'd_shops_in_wk_ajax', add_id: addId, shop_id: shopId}, onSuccess: wkEingangOk(event) }); updateWarenkorbKurz.delay(3); } function wkEingangOk(event) { var animSrc = $('wkEingangOkAnimation').src; var x = Event.pointerX(event) + 20; var y = Event.pointerY(event) - 30; $('wkEingangOk').style.top = y+'px'; $('wkEingangOk').style.left = x+'px'; $('wkEingangOkAnimation').src = '/pix/spacer.gif'; $('wkEingangOk').show(); $('wkEingangOkAnimation').src = animSrc; Element.hide.delay(3, 'wkEingangOk'); }