1 tane button
Alt 23. June 2007, 13:43   #1 (permalink)
BLOKED
Uye Olmayan
 
BLOKED - ait Kullanıcı Resmi (Avatar)
 
Uye No:
Mesajlar: n/a

Seviye: -INF [Seviye Durumu]
Aktiflik: NAN / -INF
Güç: -INF / -INF
Deneyim: NAN%

1 tane button

arkadaşlar sitemde kullanıdığım 4 adet form var hepsi aynı sayfada ve form kontrolünü js ile yapıyorum. sorunum ise sayfada 4 adet form olduğu söylemiştim bu formların birinde bi tane button olsun ve hangi radio button tıklandıysa tıklanan radio buttonun action nına gitmesi lazım bunu nasıl yaparım kodlar aşağıda;
Kod:
HTML-Kodu:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<**** http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
  <input id="r1" name="r1" type="radio" value="radiobutton" onclick="javascript:secimk(this)"/> 
  Abbas 
</form>
<form id="form2" name="form2" method="post" action="">
  <input id="r2" name="r2" type="radio" value="radiobutton" onclick="javascript:secimk(this)"/> 
  Abuzer 
</form>
<form id="form3" name="form3" method="post" action="">
  <input id="r3" name="r3" type="radio" value="Al" onclick="javascript:secimk(this)"/> 
  Abush
</form>
<form action="" method="post" enctype="multipart/form-data" name="form4" id="form4">
  <input name="s" type="checkbox" id="s" value="checkbox" /> 
  Sözleşme
  <input type="button" name="Submit" value="Tamam" onclick="javascript:gonder()"/>
</form>
<script>
function gonder(){
var r1 = $("r1");
var r2 = $("r2");
var r3 = $("r3");
var s = $("s");
if(!r1.checked && !r2.checked && !r3.checked){
alert("tıkla efendi tıkla");
}
if(!s.checked){
alert("lütfen sözleşmeyi işaretleyiniz");
}
}
function secimk(kimsin){
$("r1").checked = false;
$("r2").checked = false;
$("r3").checked = false;
kimsin.checked  = true;
}
function $(kimsin){
if(kimsin == ""){
alert('bilgi gir bilgi ..');
}else{
return document.getElementById(kimsin);
}
}
</script>
</body>
</html>
  Alıntı ile Cevapla
Cevapla

Bookmarks

Seçenekler
Stil Konuyu değerlendir
Konuyu değerlendir:

Yetkileriniz
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-KodlarıKapalı
Trackbacks are Açık
Pingbacks are Açık
Refbacks are Açık
Gitmek istediğiniz klasörü seçiniz

Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
Cok Güzel scriptler (53 tane) AntiGrevit@syon phpNuke 2 7. October 2008 19:46
Bir kaç tane karikatür lad_boy Komik & Gırgır Resimler 1 30. January 2008 22:54
Agama Web Button lad_boy Program AnlatımLarı (software) 0 4. August 2007 12:11
520 tane atatürk resmi lad_boy Wallpaper (Duvar Kağıdı) 0 23. July 2007 20:42
Bir KAç tane bilinmeyen Irc komutu BLOKED IRC Hacking&Security 0 11. July 2007 13:15



Bütün Zaman Ayarları WEZ +3 olarak düzenlenmiştir. Şu Anki Saat: 05:25 .


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

DosyaArsivi.Com® [22.06.2007]

eXTReMe Tracker

signaTURK.Com® Hosting bir DosyaArsivi.Com® Hizmetidir.


173, 171, 172, 170, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 249, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 259, 52, 53, 54, 56, 57, 58, 248, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 150, 151, 152, 153, 154, 155, 156, 157, 158, 237, 168, 183, 179, 160, 175, 178, 167, 162, 163, 164, 165, 166, 1, 176, 177, 180, 181, 182, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 201, 200, 199, 202, 203, 204, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 222, 219, 220, 221, 229, 230, 231, 232, 233, 234, 235, 236, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 250, 251, 252, 253, 254, 255, 256, 257, 258, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 276, 277, 278,