Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

exposure calc

By: a guest on Feb 20th, 2012  |  syntax: None  |  size: 0.43 KB  |  hits: 72  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <SCRIPT LANGUAGE="JavaScript">
  2. function tt (form){
  3. x = Math.pow(form.aperture.value,2);
  4. y = Math.pow(2,form.EV.value);
  5. iso = (document.form.iso.options[document.form.iso.selectedIndex].value);
  6. if (form.shutter.value <=1)
  7. {
  8. form.shutter.value = "1/" + Math.round ((1/(x/y))*(iso)*1000)/1024 + " th sec";
  9. console.log(x/y);
  10. }
  11. else {form.shutter.value = Math.round (x/y*10)/10*(iso) + " sec";
  12. console.log(x/y);
  13. }
  14. }
  15. </script>