![]() |
|
|
|
#1 (permalink) |
|
Administrator
![]() Üyelik tarihi: Nov 2004
Nerden: İstanbul
Mesajlar: 354
İtibar Gücü: 10
![]() |
Limitli Seçme
Limitli Seçme
Ziyaretçiniz belirli sayıda seçenek seçebilmesine izin verir. <HEAD>..</HEAD> arasına eklenecek kod : <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function countChoices(obj) { max = 2; // max. number allowed at a time box1 = obj.form.box1.checked; // your checkboxes here box2 = obj.form.box2.checked; box3 = obj.form.box3.checked; // add more if necessary count = (box1 ? 1 : 0) + (box2 ? 1 : 0) + (box3 ? 1 : 0); // If you have more checkboxes on your form // add more (box_ ? 1 : 0) 's separated by '+' if (count > max) { alert("Dikkat! Sadece " + max + " bölüm seçebilirsiniz! \nBir bölümden onayı kaldırın ve seçmek istediğiniz diğer bölümü seçin."); obj.checked = false; } } // End --> </script> <BODY>..</BODY> arasına eklenecek kod : <center> <form> Lütfen sadece 2 bölüm seçiniz: <input type=checkbox name=box1 onClick="countChoices(this)" value="ON">Bölüm 1 <input type=checkbox name=box2 onClick="countChoices(this)" value="ON">Bölüm 2 <input type=checkbox name=box3 onClick="countChoices(this)" value="ON">Bölüm 3 </form> </center>
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. [ To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. ] | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
|
|
|
![]() |
| Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir) | |
| Seçenekler | |
| Stil | |
|
|
| Donanım forumu - oyun - gta - oyun hileleri - oyun - voip - eğlence - barbie oyunları |