Merhaba hocam, aşağıya adet hesabını da yapan kodları ekliyorum, kolay gelsin : )
<html> <head> <title>Sıla's Cupcake</title> <center> <script type="text/javascript"> <!-- function resim1() { window.alert ("Telmax 3033 550 Hafizali telefon defterine sahiptir."); } function resim2() { window.alert("Telmax 1030 30 VIP hafizasi mevcuttur."); } function resim3() { window.alert("Telmax 1010'da isikli gelen çagri ikaz imkani vardir."); } function resim4(){ window.alert("Telmax 3030'un 640 isim ve telefon numarasi kayit edebilme kapasitesi vardir."); } function resim5(){ window.alert(" 2022 Telmax'in otel ve hastaneler için isIkli mesaj uyari , santal destekli telefonudur."); } function resim6(){ window.alert("Telmax 2020'de gün,ay,saat ve dakika gösterimi vardir."); } function resim7(){ window.alert("Telmax 5000'da bilgisayar Oyunlari mevcuttur."); } function resim8(){ window.alert("Telmax 8010 kisa mesaj(SMS) gönderme ve alma özelligine sahiptir."); } // --> </script> <script type = "text/javascript"> <!-- var fiyat, fiyatd, fiyatk, adet; function buttonPressed ( ) { fiyat = 0; adet = 0; if(searchForm.kod3033.checked){ fiyat += 32; adet += 1; } if(searchForm.kod8010.checked){ fiyat += 40; adet += 1; } if(searchForm.kod1010.checked){ fiyat += 20; adet += 1; } if(searchForm.kod1030.checked){ fiyat += 35; adet += 1; } if(searchForm.kod3030.checked){ fiyat += 30; adet += 1; } if(searchForm.kod2022.checked){ fiyat += 20; adet += 1; } if(searchForm.kod2020.checked){ fiyat += 25; adet += 1; } if(searchForm.kod5000.checked){ fiyat += 95; adet += 1; } searchForm.toplam.value = fiyat; searchForm.fiyatd.value = fiyat*0.10; searchForm.fiyatk.value = fiyat - (fiyat*0.10); searchForm.adet.value = adet; } // --> </script> </head> <body bgcolor="#FFFFFF"> <form name="searchForm"> <table border="0" width="782" height="267"> <tr align="right"> <td width="106" height="122" align="center"> <img src="http://www.mrscupcake.com.tr/resimler/_120x105/resim/apple%20bee.jpg" alt="cupcake apple bee " width="120" height="104"><br> Apple Bee <br> <input type="checkbox" name="kod3033" value="32"> <p> <p> <font size="2"><br> 32 TL</font></p> </td> <td width="159" height="122" align="center"> <img src="http://www.mrscupcake.com.tr/resimler/_120x105/resim/kayisi.jpg" alt="cupcake apricot &amp; cinnamon " width="120" height="104"><br> Apricot &amp; Cinnmon<br> <input type="checkbox" name="kod1030" value="35" > <p> <p> <font size="2">35 TL</font></p> </td> <td width="170" align="center" height="122" valign="top"> <img src="http://www.mrscupcake.com.tr/resimler/_120x105/resim/birthday%20cake.jpg" alt="cupcake birthday cake " width="120" height="104"><br> Birthday Cake <br> <input type="checkbox" name="kod2022" value="20" > <br> &nbsp;<p>20 TL</td> <td width="161" align="center" height="122"> <img src="http://www.mrscupcake.com.tr/resimler/_120x105/resim/black%20forrest.jpg" alt="cupcake black forest " width="120" height="104"><br> Black Forest<br> &nbsp;<input type="checkbox" name="kod5000" value="95" >&nbsp; <p> <p><br> <font size="2">32 TL</font></td> </tr> <tr> <td width="134" align="center" height="41"></td> </tr> <tr> <td width="106" height="122" align="center"> <img src="http://www.mrscupcake.com.tr/resimler/_120x105/resim/black%20white.jpg" alt="cupcake black &amp; white " width="120" height="104">&nbsp; Black &amp; White<br> <input type="checkbox" name="kod1010" value="20" > <p<>&nbsp;<p> <font size="2">20 TL</font></p> </td> <td width="159" height="122" align="center"> <img src="http://www.mrscupcake.com.tr/resimler/_120x105/resim/boston%20cream.jpg" alt="cupcake boston cream " width="120" height="104"><br> Boston Cream<br> <input type="checkbox" name="kod3030" value="30" > <p> <p> <font size="2">30 TL</font></p> </td> <td width="170" align="center" height="122"> <img src="http://www.mrscupcake.com.tr/resimler/_120x105/resim/bubblegum(2).jpg" alt="cupcake bubblegum " width="120" height="104"><br> Bubblegum <br> <input type="checkbox" name="kod2020" value="25" > <p> <p> <font size="2">25 TL</font></p> </td> <td width="161" align="center" height="122"> <img src="http://www.mrscupcake.com.tr/resimler/_120x105/resim/caramel%20apple.jpg" alt="cupcake caramel apple " width="120" height="104"><br> Caramel Apple <br> <input type="checkbox" name="kod8010" value="40" > <font size="2">&nbsp;<br> <br> 40 TL</font></td> </tr> </table> <br> <br> <p> <input name="search" type="button" value="Hesapla" onclick ="buttonPressed()" style="float: center"> </p> <br> <p> <font size="5" color="#0066CC">Seçilen Ürün Adedi:</font> </b></font> <font size="4"> <input type="text" name="adet" size="15"></font> </p> <p> <font size="5" color="#0066CC">Toplam Ücret:</font> </b></font> <font size="4"> <input type="text" name="toplam" size="15"> TL</font> </p> <p> <font size="5" color="#0066CC">İndirim Miktarı: </font> <font size="4"> <input type="text" name="fiyatd" size="15"> TL</font></p> <p> <font size="5" color="#003399">Ödemeniz Gereken Tutar </font> <font size="4"> <input type="text" name="fiyatk" size="15"> TL</font> <br> <br> <font color="#FF0000"><u>Bu sayfada şuan elimizde mevcut olan ürünleri görmektesiniz. </u></font> <p><b>İnternet üzerinden yapılan alışverişlerde %10 indirim uygulanmaktadır.</b><br> </p> </form> </body> </center> </html>