WTF

JS delay

    var ss = “qq”;
    for (ii = 0; ii < 1000; ii++) {
        ss += “ffff”;
    }

An interesting way…

Eval is evil

A piece of JavaScript:
var total = total + parseFloat(eval(’document.frm.smth’ + x + ‘.value’));

var tmpTotal = eval(’parseFloat(document.frm.smth.value)’ + action + ‘parseFloat(price)’);

To my small WTF collection

<SCRIPT TYPE=”text/javascript”>
  var a = confirm(’#errorMessage#’);
  if (a == true)
    history.back(0);
  else {
    history.back(0);
}
<SCRIPT>

Strange things

while (list(,$vvv) = @each($aTmp)) {
  $kkkk = substr($vvv,0,strpos($vvv,‘=’));
  $vvvv = substr($vvv,strpos($vvv,‘=’)+1);
  $aValues[$kkkk] = $vvvv;
}

This is a part from the code I should work with. No comments.