Posted By

nicolaspar on 08/02/06


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

luman
xaviaracil


JavaScript - Pantalla en blanco y negro.


 / Published in: PHP
 

  1. function alertar()
  2. {
  3. ht = document.getElementsByTagName('html');
  4. ht[0].style.filter = 'progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)';
  5. if (confirm('¿Aca la pregunta?'))
  6. {
  7. return true;
  8. }
  9. else
  10. {
  11. ht[0].style.filter = '';
  12. return false;
  13. }
  14. }
  15. //llamar usando un return delante, ej: onclick='return alertar()'

Report this snippet  

You need to login to post a comment.