Autor Zpráva
nethor
Profil
Ve formulářích používám <label>, dost mne překvapilo, že když nahradím text obrázkem , přestane v IE8 fungovat.
první funguje, druhý ne:
<label>
	<input type="radio"  name="menu[13]['move']"  value=""  checked >ne
</label>


<label>
	<input type="radio"  name="menu[13]['move']"  value="u"  >
	<img src='obr/m_u.gif' alt='o 1 výš' 	border='0' height='9' width='7'>
</label>


Nevíte, jak to elegantně fixnout?
__construct
Profil
nethor:
Nevíte, jak to elegantně fixnout?
Dá sa to obísť cez JS
Edit:
Ešte som na to našiel jeden spôsob - behavior:
<ins title="Doplněno 7.3.2011 13:02:10."><public:component>
  <script type="text/javascript">
  <!--  
    function getParentElementByTagName(oElement, tagName)
    {
      var returnValue = null;
      while((oElement = oElement.parentNode) && oElement != document)
      {
        if(oElement.tagName && oElement.tagName.toUpperCase() == tagName.toUpperCase())
        {
          returnValue = oElement;
          break;
        }
      }
      return returnValue;
    }
    
    function bubbleClick()
    {
      oParent = getParentElementByTagName(this, 'LABEL');
      if(oParent)
        oParent.click();
    }
  // -->
  </script>
  <public:attach event="onclick" onevent="bubbleClick()"/>
</public:component></ins>

Vaše odpověď


Prosím používejte diakritiku a interpunkci.

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

0