piano imagemap test

piano H-1 C0 CIS0 > D0 DIS0 E0 F0 FIS0 G0 GIS0 A0 B0 H0 C1 CIS1 D1 DIS1 E1 F1 FIS1 G1 GIS1 A1 B1 H1 C2 CIS2 D2 DIS2 E2 F2

Labels

Wirtschaft (156) Pressefreiheit (153) Österreich (125) IT (111) code (71) Staatsschulden (37) EZB (27) Pensionssystem (16) Geopolitik (13)

2013-01-16

a simple url encoder/decoder in javascript

<script type="text/javascript" language="javascript">
    function urlencode(s) {
        if (s == null || s.value == null || s.value == '') {
            alert("Url to encode is null or empty!");
            return ;
        } 
        var uri = encodeURIComponent(s.value)
        document.getElementById('output').value = uri;
    }              
    function urldecode(s) {        
        if (s == null || s.value == null || s.value == '') {
            alert("Url to decode is null or empty!");
            return ;
        }   
        var uri = decodeURIComponent(s.value)
        document.getElementById('output').value = uri;
    }
</script>

<form action="" id="urlform">
  <table cellspacing="1" cellpadding="1">
    <tr>
      <td>
        <input type="text" id="url" name="url" size="64" maxlength="256"
          value="http%3A%2F%2Fblog.area23.at%2F" />
      </td><td>
        <input type="button" id="deocde" name="deocde" value="deocde"
          onclick="urldecode(document.getElementById('url'))" />
      </td><td align="right">
        <input type="button" id="encode" name="encode" value="encode"
          onclick="urlencode(document.getElementById('url'))" />
      </td><td align="right">
        &nbsp;a simple url encoder/decoder
      </td>   
    </tr><tr>
      <td colspan="3">
        <input type="text" id="output" name="output" size="90" maxlength="256" readonly="readonly" />
      </td><td align="right">
        &nbsp;<a href="http://blog.area23.at">http://blog.area23.at</a>
      </td>
    </tr>   
  </table>
</form>    

Keine Kommentare:

Kommentar veröffentlichen