JavaScript - Pantalla en blanco y negro.


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.