NOTICE

Adfly Links not working Find Direct Links HERE

How to hide or remove div using Escape key from keyboard using JavaScript and jQuery

Using JavaScript


<script type="text/javascript">
 window.onkeyup = function (event) {
  if (event.keyCode == 27) {
    document.getElementById(boxid).style.visibility="hidden";
  // window.close();
  }
 }
</script>


Using jQuery


$( document ).on( 'click', function ( e ) {
    if ( $( e.target ).closest( elem ).length === 0 ) {
        $( elem ).hide();
    }
});
$( document ).on( 'keydown', function ( e ) {
    if ( e.keyCode === 27 ) { // ESC
        $( elem ).hide();
    }
});

0 comments :

Feel free to leave comment if you like above widget, have any questions or just say Hi! :)

"Could not complete your request because the file-format module cannot parse the file" error in photoshop CS3 on opening .png file

Solution

let the file image.png is showing this error "Could not complete your request because the file-format module cannot parse the file" popup.

1) Now Right click on image.png and open with Paint

2) Go to File >> Save-As >>Select PNG format >> then Save and Overwrite the previous file ( Don;t woryy the quality of image remain same )

3) Now you have a new image.png file which can be open with Photoshop without any Error pop up.

0 comments :

Feel free to leave comment if you like above widget, have any questions or just say Hi! :)