| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 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
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 
 | <html>
 
<head>
<script>
function copy() {
  if (document.selection) {
    selection = document.selection.createRange().text;
    if (selection.length > 0) {
      clipboard = ""+window.clipboardData.getData("Text");
      selection = selection.replace (/ /g, "");
      clipboard = clipboard.replace (/ /g, "");
      selection = selection.replace (/\r/g, "");
      clipboard = clipboard.replace (/\r/g, "");
      selection = selection.replace (/\n/g, "");
      clipboard = clipboard.replace (/\n/g, "");
      clipboard = clipboard.replace (/"DateEtat"/g, "Date Etat");
      if (clipboard == selection) {
        data = window.clipboardData.getData("Text");
        data = data.replace (/\n/g, "\r\n");
        data = data.replace (/\r\r/g, "\r");
        tab = data.split("\n");
        texte = "";
        for (i=0;i<tab.length;i++) {
          ligne = tab[i];
          //alert("_"+ligne+"_");
          if (document.getElementById(ligne.substr(0, 19)) != null) {
 
            ligne = ligne.substr(0, 19) + " " + document.getElementById(ligne.substr(0, 19)).alt;
          }
          texte = texte + ligne + "\r\n";
        }
        window.clipboardData.setData("Text", texte);
      }
    }
  }
  return (false);
}
</script>
</head>
 
<body onmouseout="copy();">
Texte précédent<br />
  <table border="1" align="center" valign="center">
    <tr>
     <td align="center"><b>Date</b></td>
     <td align="center"><b>Etat</b></td>
    </tr>
    <tr class='liste-impaire'>
      <td align="center">02/05/2006 21:58:34</td>
      <td align="center">
        <img id="02/05/2006 21:58:34" src='imgOk.gif' width='16' height='16' alt='OK' title='OK' />
      </td>
    </tr>
    <tr class='liste-paire'>
      <td align="center">02/05/2006 16:30:36</td>
      <td align="center">
        <img id="02/05/2006 16:30:36" src='imgNok.gif' width='16' height='16' alt='HS' title='HS' />
      </td>
    </tr>
  </table>
</body>
</html> | 
Partager