home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 February / chip_02_2004.iso / shop / produkt.js < prev    next >
Text File  |  2003-11-29  |  7KB  |  29 lines

  1. var bestellrot = new Image();bestellrot.src = "images/bestrot.gif";var bestellblau = new Image();bestellblau.src = "images/bestblau.gif";function put(myform){var strMsg = '<QUANTITY> Stⁿck "<NAME>" wurden in den Warenkorb gelegt\n\nUm die Bestellung jetzt abzusenden, klicken Sie bitte auf "Warenkorb" im Menⁿ links.';
  2. parent.shop.objWeb66.addPosition(myform, strMsg);parent.warenbild.location.href="warenbild.htm";}function changeCapt(s){parent.shop.str2 = s;parent.capt.location = "capt.htm";}function Titel(){var outStr = '';
  3. var tt = '' + parent.shop.str1;var tt1 = tt;if (tt.substr(0,2) == 'CE') { tt = 'Computer Easy' + tt1.slice(2) }if (tt == 'Willkommen bei') { tt = 'Aktuelles Angebot:' }if (tt.substr(0,8) == 'Angebote') {tt = 'PC ONLiNE - Die aktuellen Angebote'}
  4. outStr = '<font face="Arial" size="+1" color=black><b>' + tt + '</b></font>';document.writeln(outStr);}function fenster(pname,ptitel){var  x=0;var y=0;var s='';var s1='';s=pname;s1=pname.substr(pname.length-4,4);
  5. s1=s1.toUpperCase();if (s1=='.ZIP' || s1 == '.EXE'){window.location.href=pname;} else{x = Math.ceil(0.7 * screen.availWidth);y = Math.ceil(0.7 * screen.availHeight);f=open(pname,ptitel,"width="+x.toString()+",height="+y.toString()+",screenX=40,screenY=80,scrollbars=yes,location=no,resizable=yes");
  6. f.name=ptitel;f.focus;}}function entfernen_font_2(t){erste_anders_1=t.search(/size="1"/i);erste_anders_3=t.search(/size="3"/i);erste_anders_4=t.search(/size="4"/i);bis=t.length;if (erste_anders_1 != -1) {if (erste_anders_1 < bis) {bis=erste_anders_1}}
  7. if (erste_anders_3 != -1) {if (erste_anders_3 < bis) {bis=erste_anders_3}}if (erste_anders_4 != -1) {if (erste_anders_4 < bis) {bis=erste_anders_4}}p=t.search(/<FONT  SIZE="2">/i);while ((p > -1) && (p<bis))
  8. {p=t.search(/<FONT  SIZE="2">/i);if ((p>-1) && (p<bis)){t1=t.slice(0,p);t2=t.slice(p+16,t.length);p1=t2.search(/<\/FONT>/i);t=t1+t2.slice(0,p1)+t2.slice(p1+7);}}return(t);}function text_hinzufuegen(text)
  9. {if (text.substr(0,3)=="<P>") text = text.substr(3,text.length-3);box = text.search(/<box>/i);if (box > -1) {text = text.replace(/<box>/gi,"");}aufzaehlung_1 = text.search(/<UL1>/i);if (aufzaehlung_1 > -1) {text = text.replace(/<UL1>/gi,"");}
  10. aufzaehlung_2 = text.search(/<UL2>/i);if (aufzaehlung_2 > -1) {text = text.replace(/<UL2>/gi,"");}aufzaehlung_3 = text.search(/<UL3>/i);if (aufzaehlung_3 > -1) {text = text.replace(/<UL3>/gi,"");}text = text.replace(/FACE="MS Sans Serif"/gi,"");
  11. text = text.replace(/FACE="Verdana"/gi,"");text = text.replace(/face=/gi,"");text = text.replace(/LI> <LI/gi,"LI><LI");text = text.replace(/<BR><\/LI><LI>/gi,"</LI><LI>");text = text.replace(/<\/LI><LI><\/FONT>/gi,"</FONT></LI><LI>");
  12. text = text.replace(/<\/LI><LI> <\/FONT>/gi,"</FONT></LI><LI>");text = text.replace(/<FONT *SIZE="."><\/FONT>/gi,"");text = text.replace(/<UL> <LI>/gi,"<UL><LI>");text = text.replace(/<FONT *SIZE="."> <\/FONT>/gi," ");
  13. text = text.replace(/<\/FONT><FONT  SIZE="2"><\/B>/gi,"</B></FONT><FONT  SIZE=\"2\">");text = text.replace(/<BR><\/LI> <\/UL><P><\/FONT>/gi,"<BR></LI></FONT></UL><P>");text = text.replace(/<UL><LI><\/FONT>/gi,"</FONT><UL><LI>");
  14. text = text.replace(/<FONT  SIZE="2" COLOR="#000000"><\/B>/gi,"</B><FONT  SIZE=2 COLOR=\"#000000\">");text = text.replace(/<FONT *SIZE="."><BR><\/LI><\/FONT>/gi,"<BR></LI>");text = text.replace(/<FONT *SIZE="."><BR><P><\/FONT>/gi,"<BR><P>");
  15. text = text.replace(/<FONT *SIZE="."><BR><\/FONT>/gi,"<BR>");text = text.replace(/<FONT *SIZE="."><BR><BR><\/FONT>/gi,"<BR><BR>");text = text.replace(/<BR><P>/gi,"<P>");text = text.replace(/<FONT  SIZE=2 COLOR="#000000"><P><\/FONT>/gi,"<P>");
  16. text = text.replace(/<\/FONT><\/B>/gi,"</B></FONT>");text = text.replace(/<P><UL>/gi,"<UL>");text = text.replace(/<\/FONT><FONT  SIZE="1"><\/B>/gi,"</B></FONT><FONT  SIZE=\"1\">");text = text.replace(/<P><\/FONT>/gi,"</FONT><P>");
  17. text = entfernen_font_2(text);text=text.replace(/<\/1><br><\/LI><\/UL>/gi,"</li></ul></1>");if (box > -1){if (parent.shop.objAgent.bIE4){text = text.replace(/<1>/gi,"<SPAN style=\"background-color:red; color:yellow; width:100%; padding-top:5px; padding-bottom:5px; padding-right:10px; padding-left:10px;\" >");
  18. text = text.replace(/<2>/gi,"<SPAN style=\"background-color:yellow; width:100%; padding-top:5px; padding-bottom:5px; padding-right:10px; padding-left:10px; \" >");text = text.replace(/<3>/gi,"<SPAN style=\"background-color:yellow; color:red; width:100%; padding-top:5px; padding-bottom:5px; padding-right:10px; padding-left:10px;\" >");
  19. text = text.replace(/<4>/gi,"<SPAN style=\"background-color:#6AD500; width:100%; padding-top:5px; padding-bottom:5px; padding-right:10px; padding-left:10px; \" >");} else{text = text.replace(/<1>/gi,"<SPAN style=\"background-color:red; color:yellow; width:100%; padding-top:1px; padding-bottom:1px; padding-right:10px; padding-left:10px;\" >");
  20. text = text.replace(/<2>/gi,"<SPAN style=\"background-color:yellow; width:100%; padding-top:1px; padding-bottom:1px; padding-right:10px; padding-left:10px; \" >");text = text.replace(/<3>/gi,"<SPAN style=\"background-color:yellow; color:red; width:100%; padding-top:1px; padding-bottom:1px; padding-right:10px; padding-left:10px;\" >");
  21. text = text.replace(/<4>/gi,"<SPAN style=\"background-color:#6AD500; width:100%; padding-top:1px; padding-bottom:1px; padding-right:10px; padding-left:10px; \" >");}}else{text = text.replace(/<1>/gi,"<SPAN style=\"background-color:red; color:yellow; padding-top:1px; padding-bottom:1px; padding-right:10px; padding-left:10px;\" >");
  22. text = text.replace(/<2>/gi,"<SPAN style=\"background-color:yellow; padding-top:1px; padding-bottom:1px; padding-right:10px; padding-left:10px; \" >");text = text.replace(/<3>/gi,"<SPAN style=\"background-color:yellow; color:red; padding-top:1px; padding-bottom:1px; padding-right:10px; padding-left:10px;\" >");
  23. text = text.replace(/<4>/gi,"<SPAN style=\"background-color:#6AD500; padding-top:1px; padding-bottom:1px; padding-right:10px; padding-left:10px; \" >");}if (parent.shop.objAgent.bIE4){} else{text = text.replace(/<LI>/gi,"<LI><FONT SIZE=\"2\">");
  24. text = text.replace(/<\/LI>/gi,"</FONT></LI>");}text = text.replace(/<\/1>/gi,"</SPAN>");text = text.replace(/<cd>/gi,"<img src=\"images/cd_silber_20.gif\" style=\"filter:Chroma(color=#ffffff)\" align=\"absmiddle\"> ");
  25. text = text.replace(/<dvd>/gi,"<img src=\"images/dvd_silber_20.gif\" style=\"filter:Chroma(color=#ffffff)\" align=\"absmiddle\"> ");if (aufzaehlung_1 > -1){text = text.replace(/<ul>/gi,"<ul style=\"list-style-image:url(images/black01_next.gif)\" >");
  26. }if (aufzaehlung_2 > -1){text = text.replace(/<ul>/gi,"<ul style=\"list-style-image:url(images/red03_next.gif)\" >");}if (aufzaehlung_3 > -1){text = text.replace(/<ul>/gi,"<ul style=\"list-style-image:url(images/blackbox_next.gif)\" >");
  27. }text = text.replace(/<P>/gi,"<P style=\"font-family:Verdana,Arial,sans-serif; font-size:x-small;\">");document.write('<DIV font-family:Verdana,Arial,sans-serif; font-size:x-small;>');document.write('<FONT face="Verdana, Arial" size="2">');
  28. document.writeln(text);document.write('</FONT></DIV>');}
  29.