EgitimTube.Net
Would you like to react to this message? Create an account in a few clicks or log in to continue.

EgitimTube.Net


 
AnasayfaAramaLatest imagesKayıt OlGiriş yap

 

 Ziyaretçiniz belirli sayıda seçenek seçebilmesine izin verir

Aşağa gitmek 
YazarMesaj
yakan531
Moderatör
Moderatör
yakan531


Zodyak Yay Mesaj Sayısı : 207
çin astrolojisi Domuz
Kayıt tarihi : 16/11/09
Yaş : 28
celebimutfak.com

Ziyaretçiniz belirli sayıda seçenek seçebilmesine izin verir Empty
MesajKonu: Ziyaretçiniz belirli sayıda seçenek seçebilmesine izin verir   Ziyaretçiniz belirli sayıda seçenek seçebilmesine izin verir Icon_minitimeÇarş. Şub. 10, 2010 3:59 pm

Kod:
<script LANGUAGE="Javascript">
<!-- Original:  Glenn Wang (brief( at )ix.netcom.com) -->
<!-- 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

Kod:
<center>
<form>
Lütfen sadece 2 bölüm seçiniz:
<p>
<input type=checkbox name=box1 onClick="countChoices(this)" value="ON">Bölüm 1 <p>
<input type=checkbox name=box2 onClick="countChoices(this)" value="ON">Bölüm 2 <p>
<input type=checkbox name=box3 onClick="countChoices(this)" value="ON">Bölüm 3 <p> </form> </center>
Sayfa başına dön Aşağa gitmek
http://www.egitimtube.net
 
Ziyaretçiniz belirli sayıda seçenek seçebilmesine izin verir
Sayfa başına dön 
1 sayfadaki 1 sayfası

Bu forumun müsaadesi var:Bu forumdaki mesajlara cevap veremezsiniz
EgitimTube.Net :: •·.·´¯`·.·••·.·´¯`·.·•WebMaster•·.·´¯`·.·••·.·´¯`·.·• :: Script Problem ve Paylasım-
Buraya geçin: