Autor Zpráva
aaabbb2
Profil
Konečne sa mi podarilo rozlusknut túto dilemu, takze ak niekto potrebuje niečo takéto..tu to máte.

Ja konkretne to teraz davam do adminu na zadavanie viacerych jazykov *8)

---- zaciatok kódu

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test 2 polia jednym klikom</title>
<STYLE type=text/css media=screen>
UL.formlist {
	PADDING-RIGHT: 10px;
	PADDING-LEFT: 0px;
	PADDING-BOTTOM: 1em;
	MARGIN: 0px;
	PADDING-TOP: 0px;
	LIST-STYLE-TYPE: none
}
</STYLE>

<script type="text/javascript">
function eventTrigger (e) {
    if (! e)
        e = event;
    return e.target || e.srcElement;
}

<!--   OKi_66666666johnybb999999999999xxxxxxxxxxxxx   -->

function radioClick (e) {
    var obj = eventTrigger (e);
    var notify = document.getElementById &&
                    document.getElementById ('notify');
    if (notify)
        notify.value = '1 policko = ' + obj.value;
    var notify2 = document.getElementById &&
                    document.getElementById ('notify2');		
    if (notify2)
        notify2.value = '2 policko = ' + obj.value2;		
    return true;
}


<!--   notify.value = 'zadali ste ... ' + obj.value;   -->

function load2 () {
    var btn = document.getElementById ('second');
    if (btn)
        btn.onclick = radioClick;
}


function loadrest () {
    var list = document.getElementsByTagName ('input');
    if (! list)
        return;
    for (var i = 0; i < list.length; ++i)
        if (list[i].name == 'radios' && ! list[i].onclick)
            list[i].onclick = radioClick;
}


function doload () {
    if (document.getElementsByTagName &&
            document.getElementsByTagName ('body')) {
        load2 ();
        loadrest ();
    }
}

window.onload = doload;


function linkClick (e) {
    var obj = eventTrigger (e);
    var str = obj.innerHTML + "\n";
    if (obj.tagName != 'A')
        obj = obj.parentNode;
    str += obj.innerHTML;
    alert (str);
    return false;
}

</script>

</head>
<BODY>
<FORM action="" method=get>
  <UL class=formlist>
		  <LI><LABEL><INPUT type=radio 
                           value=Prvé políčko
                          value2=First cell
                     name=radios> Prvé 
              </LABEL>
          <LI><LABEL><INPUT type=radio 
                           value=Druhé políčko
                          value2=Second cell
                     name=radios> Druhé 
              </LABEL>
          <LI><LABEL><INPUT type=radio 
                           value=Tretie políčko
                          value2=Third cell
                     name=radios> Tretie 
              </LABEL>
         </LI>
  </UL>
<P>
    <input class=notify id=notify size=24 name=notify>
</P>
<P>
  <input class=notify2 id=notify2 size=24 name=notify2>
</P>
</FORM>
<hr>
</BODY></HTML>






---- koniec kódu

Vaše odpověď


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0