AW: Das hab ich noch nicht erlebt...
Sarah bekommt die hier ! Die hat so ein süsses freundliches Gesicht!
<TABLE cellSpacing=0 cellPadding=0 width=1002 border=0><TBODY><TR><TD class=lefttablecolumn vAlign=top width=140></TD><!-- Suche und Sekundaernavigation (links) bis --><!-- Content Bereich (Mitte) von --><TD class=centertablecolumn vAlign=top width=664><!-- efProductDisplayContent.jsp begin --><SCRIPT language=javascript1.1 src="/coremetrics/v40/eluminate.js" type=text/javascript></SCRIPT><SCRIPT language=javascript1.1 src="/coremetrics/cmdatatagutils.js" type=text/javascript></SCRIPT><SCRIPT language=javascript1.1 type=text/javascript><!-- cmSetProduction(); cmCreateProductviewTag( "108672", "Stoffpuppe", "12057");//--></SCRIPT><SCRIPT language=javascript> var pPreis = new Array(); var pBestand = new Array(); var pLieferbar=new Array(); var pImage=new Array(); var pItemId=new Array(); var oneSize=0; var oneColor=0; pPreis["GRUEN/ROSA"]=new Object()
Bestand["GRUEN/ROSA"]=new Object()
Lieferbar["GRUEN/ROSA"]=new Object()
Image["GRUEN/ROSA"]=new Object()
ItemId["GRUEN/ROSA"]=new Object()
Preis["PINK/LILA"]=new Object()
Bestand["PINK/LILA"]=new Object()
Lieferbar["PINK/LILA"]=new Object()
Image["PINK/LILA"]=new Object()
ItemId["PINK/LILA"]=new Object()
Preis["GRUEN/ROSA"]["-"] = "4,98"
Bestand["GRUEN/ROSA"]["-"] = "true"
Lieferbar["GRUEN/ROSA"]["-"] = "false"
Image["GRUEN/ROSA"]["-"] = "48323_1.jpg"
ItemId["GRUEN/ROSA"]["-"] = "108674"
Preis["PINK/LILA"]["-"] = "4,98"
Bestand["PINK/LILA"]["-"] = "true"
Lieferbar["PINK/LILA"]["-"] = "false"
Image["PINK/LILA"]["-"] = "48323_1.jpg"
ItemId["PINK/LILA"]["-"] = "108673"; var imagePrefix="/produkt_images/"; function getSizes(color) { var pSizes=new Array(); var i=0; for(var Size in pPreis[color]) { pSizes
=Size; i++; } return pSizes; } function getColors(size) { var pColors=new Array(); var i=0; for(var Color in pPreis) { for(var Size in pPreis[Color]) { if(Size==size) { pColors=Color; i++; } } } return pColors; } function getPreis(color,size) { if(pPreis[color][size]!=null && pPreis[color][size]!="undefined") { return pPreis[color][size]; } else { return ""; } } function getBestand(color,size) { return pBestand[color][size]; } function getLieferbar(color,size) { return pLieferbar[color][size]; } function getImage(color,size) { if(getPreis(color,size)!="") { return imagePrefix+pImage[color][size]; } else { for(var Color in pPreis) { for(var Size in pPreis[Color]) { if(getPreis(Color,Size)!="") { return imagePrefix+pImage[Color][Size]; } } } } } function getItemId(color,size) { return pImageId[color][size]; } function updateImage(color,size) { document.getElementById("itemimage").src=getImage(color,size); } function updatePreis(color,size) { document.getElementById("itemprice").innerHTML=getPreis(color,size); document.getElementById("itemprice_hidden").value=getPreis(color,size); } function updateDetails(image) { for(color in pImage) { for(size in pImage[color]) { if(pImage[color][size]==image) { //alert(image+" - "+color+" - "+size); updateSelectboxes(color,size); return; } } } } function updateSelectboxes(color,size) { if(oneSize=0 && oneColor==0) { var sizesCount=document.getElementById("itemsize").length; var colorsCount=document.getElementById("itemcolor").length; var colors=new Array(); var sizes=new Array(); sizes.push(size); for(var i=0;i < sizesCount;i++) { var value=document.getElementById("itemsize").options.value; var text=document.getElementById("itemsize").options.text; if(value!=size) sizes.push(value); } for(var i=0;i < sizesCount;i++) { document.getElementById("itemsize").options=null; } colors.push(color); for(var i=0;i < colorsCount;i++) { var value=document.getElementById("itemcolor").options.value; var text=document.getElementById("itemcolor").options.text; if(value!=color) colors.push(value); } for(var i=0;i < colorsCount;i++) { document.getElementById("itemcolor").options=null; } for(var i=0;i < sizesCount;i++) { if(i==0) { document.getElementById("itemsize").options=new Option(sizes,sizes,true,true); } else { document.getElementById("itemsize").options=new Option(sizes,sizes,false,false); } } for(var i=0;i < colorsCount;i++) { if(i==0) { document.getElementById("itemcolor").options=new Option(colors,colors,true,true); } else { document.getElementById("itemcolor").options=new Option(colors,colors,false,false); } } } updateImage(color,size); updatePreis(color,size); updateShoppingbag(color,size); } function updateShoppingbag(color,size,exception) { if(exception=1) { document.getElementById("shoppingbag_disabled").style.display="none"; document.getElementById("shoppingbag_disabled").style.visibility="hidden"; document.getElementById("shoppingbag_enabled").style.display="none"; document.getElementById("shoppingbag_enabled").style.visibility="hidden"; } var bestand=getBestand(color,size); if(bestand=="true" && (1==1 || 1==) { document.getElementById("shoppingbag_enabled").style.display="inline"; document.getElementById("shoppingbag_enabled").style.visibility="visible"; document.getElementById("shoppingbag_disabled").style.display="none"; document.getElementById("shoppingbag_disabled").style.visibility="hidden"; } else { document.getElementById("shoppingbag_disabled").style.display="inline"; document.getElementById("shoppingbag_disabled").style.visibility="visible"; document.getElementById("shoppingbag_enabled").style.display="none"; document.getElementById("shoppingbag_enabled").style.visibility="hidden"; } } function updateSizeBox(color,size) { var selectedSize=size; var sizes=getSizes(color); var sizeElement=document.getElementById("itemsize"); if(sizeElement!=null) { for(var i=0;i<sizeElement.length;i++) { sizeElement.options=null; } } if(sizes!=null && sizeElement!=null) { var selected=false; var idx=0; for(var i=0;i<sizes.length;i++) { if(pPreis[color][sizes]!=null || pPreis[color][sizes]!="undefined") { if(selectedSize==sizes) {idx=i; } } } for(var i=0;i<sizes.length;i++) { if(pPreis[color][sizes]!=null || pPreis[color][sizes]!="undefined") { if(i==idx) { selected=true; selectedSize=sizes; } else { selected=false; } sizeElement.options=new Option(sizes,sizes,false,selected); } } } return selectedSize; } function updateColorBox(color,size) { var selectedColor=color; var colors=getColors(size); var colorElement=document.getElementById("itemcolor"); if(colorElement!=null) { for(var i=0;i<colorElement.length;i++) { colorElement.options=null; } } if(colors!=null && colorElement!=null) { var selected=false; var idx=0; for(var i=0;i<colors.length;i++) { if(pPreis[colors][size]!=null || pPreis[colors][size]!="undefined") { if(selectedColor==colors) { idx=i; } } } for(var i=0;i<colors.length;i++) { if(pPreis[colors][size]!=null || pPreis[colors][size]!="undefined") { if(i==idx) { selected=true; selectedColor=colors; } else { selected=false; } colorElement.options=new Option(colors,colors,false,selected); } } } return selectedColor; } function updateColor() { var len=0; if(oneSize==0) { selectedSize=document.getElementById("itemsize").options[document.getElementById("itemsize").selectedIndex].value; selectedColor=document.getElementById("itemcolor").options[document.getElementById("itemcolor").selectedIndex].value; len=document.getElementById("itemcolor").length; } else { selectedSize=document.getElementById("itemsize").value; selectedColor=document.getElementById("itemcolor").value; len=1; } //update Sektion //selectedSize=updateSizeBox(selectedColor,selectedSize); updateImage(selectedColor,selectedSize); updatePreis(selectedColor,selectedSize); updateShoppingbag(selectedColor,selectedSize); } function updateSize() { if(oneColor==0) { selectedColor=document.getElementById("itemcolor").options[document.getElementById("itemcolor").selectedIndex].value; selectedSize=document.getElementById("itemsize").options[document.getElementById("itemsize").selectedIndex].value; } else { selectedColor=document.getElementById("itemcolor").value; selectedSize=document.getElementById("itemsize").value; } //update Sektion //selectedColor=updateColorBox(selectedColor,selectedSize); updateImage(selectedColor,selectedSize); updatePreis(selectedColor,selectedSize); updateShoppingbag(selectedColor,selectedSize); }</SCRIPT><SCRIPT language=javascript> var UrlKatInfo = 'storeId=10001&langId=-3&catalogId=10001'; var UrlBerInfo = 'categoryId=12057&bereichId=1'; function blankTag(form) { form.mailtime[1].checked = true; if ( form.mttag.value == 'TT' ) form.mttag.value = ''; } function blankMonat(form) { form.mailtime[1].checked = true; if ( form.mtmonat.value == 'MM' ) form.mtmonat.value = ''; } function blankJahr(form) { form.mailtime[1].checked = true; if ( form.mtjahr.value == 'JJJJ' ) form.mtjahr.value = ''; } function EMail(s) // Prueft die E-Mail auf korrektes Format { var a = false; var res = false; if(typeof(RegExp) == 'function') { var b = new RegExp('abc'); if(b.test('abc') == true){a = true;} } if(a == true) { reg = new RegExp('^([a-zA-Z0-9\\-\\.\\_]+)'+ '(\\@)([a-zA-Z0-9\\-\\.]+)'+ '(\\.)([a-zA-Z]{2,4})$'); res = (reg.test(s)); } else { res = (s.search('@') >= 1 && s.lastIndexOf('.') > s.search('@') && s.lastIndexOf('.') >= s.length-5) } return(res); } function Weiterempfehlen(form) { location.href="efWeiterempfehlen?catEntryId=108672&shortDescription=Stoffpuppe&Einzelpreis=4,98&parent_category_rn=&categoryId=12057&attrName_AttributName2=0&attrName_AttributName1=0&attrValue_AttributName1=&quantity=1&bereichId=1&storeId=10001&langId=-3&catalogId=10001"; } function cent(amount) {// returns the amount in the .99 format amount -= 0; return (amount == Math.floor(amount)) ? amount + '.00' : ( (amount*10 == Math.floor(amount*10)) ? amount + '0' : amount); } function checkNachricht(s) // Prueft die Nachricht auf Sonderzeichen { var res = false; reg = new RegExp('^([-a-zA-Z0-9 äöüÄÖÜß`&:,;_\?\.\n\r\s]+)$'); res = (reg.test(s)); return(res); } function AskAdd2ShopCart(form) { var fehler = false; if ((form.quantity.value < 1) || (form.quantity.value >99)) { alert('Bitte geben Sie eine gültige Bestellmenge an!\n(mind. 1, max. 99)'); } else { var sUND = '&'; var sURL = 'efPopUpArtikelHinzufuegen?cId=108672&' + UrlBerInfo + sUND; var currSize = ''; var currColor = ''; if(oneSize==0) { currSize=form.attrValue_AttributName2.options[form.attrValue_AttributName2.selectedIndex].value; } else { currSize=form.attrValue_AttributName2.value; } if(oneColor==0) { currColor=form.attrValue_AttributName1.options[form.attrValue_AttributName1.selectedIndex].value; } else { currColor=form.attrValue_AttributName1.value; } sURL += 'oId=.&'; // orderId sURL += 'aNG=61747&'; //attrName_Attribut1 sURL += 'aNF=61748&'; // attrName_Attribut2 sURL += 'q=' + form.quantity.value + sUND; sURL += 'Ep=' + form.Einzelpreis.value.replace(',','.') + '&'; sURL += 'aVF=' + escape(currSize) + sUND; sURL += 'aVG=' + escape(currColor) + sUND; // sURL += 'aVF=' + encodeURI(currSize) + sUND; // sURL += 'aVG=' + encodeURI(currColor) + sUND; sURL += 'catId=12057&'; // categoryId sURL += 'catSD=P0706&'; form.action="javascript:openWindow('../servlet/" + sURL + "','warenkorb','width=610,height=280')"; if ( fehler == false ) { form.submit(); } } } function aufMerkzettel(form) { var sUND = '&'; var sURL = 'efPopUpMerkzettelBestaetigen?catEntryId=108672&' + UrlKatInfo + '&' + UrlBerInfo + sUND; sURL += 'orderId=.&'; sURL += 'attrName_AttributName1=0&'; sURL += 'attrName_AttributName2=0&'; sURL += 'attrValue_AttributName2=' + escape(form.attrValue_AttributName2.options[form.attrValue_AttributName2.selectedIndex].value) + sUND; sURL += 'attrValue_AttributName1=' + escape(form.attrValue_AttributName1.options[form.attrValue_AttributName1.selectedIndex].value) + sUND; sURL += 'quantity=' + document.OrderItemAddForm.quantity.value + sUND; sURL += 'shortDescription=Stoffpuppe&'; form.action="javascript:openWindow('../servlet/" + sURL + "','merkzettel','width=610,height=250')"; form.submit(); } function changeImage(image,color){ //alert(image + ' | ' + color); document.images["productdetail"].src = '/produkt_images/' + image; }function ReloadItemInformation(form){ var sURL = 'ProductDisplay?productId=108672'; sURL += '&catalogId=10001'; sURL += '&categoryId=12057'; sURL += '&langId=-3'; sURL += '&bereichId=1'; sURL += '&storeId=10001'; sURL += '&ddkey=ProduktDisplay'; sURL += '&attrValue_AttributName1=' + form.attrValue_AttributName1.options[form.attrValue_AttributName1.selectedIndex].value + '&';sURL += 'attrValue_AttributName2=' + form.attrValue_AttributName2.options[form.attrValue_AttributName2.selectedIndex].value + '&';sURL += 'quantity=' + form.quantity.value; //alert(sURL); this.location.href = sURL; return true;}</SCRIPT></TD></TR></TBODY></TABLE>
So eine normale Puppe haben wir schon in Miniklein. Eine richtige gibt es dann nächstes Jahr zum Geburtstag oder so.
Momentan find ich so was weiches schöner.
LG Vanessa