Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 963703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:42:43+00:00 2026-05-16T01:42:43+00:00

I am using a image blow up simply with an overlay image and the

  • 0

I am using a image blow up simply with an overlay image and the main image. the blow up gets open when we click the small image and then if we click the opnend up blowed up image then it gets closed. Now i want that it should get closed on ecs key press.

how can i do that???

sample of my code is :-

function Blowups(arrs,flag,nums,img_nm)
{
var h = window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop;
var pheight = document.getElementsByTagName('html')[0].scrollHeight;
var myHeight = document.documentElement.clientHeight;
var div1 = document.getElementById('mrgn');
var div2 = document.getElementById('div_disp');
var prev='';
var nxt='';
var scr2='';
var scr3='';
    var imgs=arrs.split(',');
    var i=(flag)-1;
    var k=0;
    var m=0;
    src1='http://www.a.in/im/'+imgs[i];
            if(flag != 1)
                prev="<a href=\"blah blah\">&laquo; Prev</a>";
            if(flag != nums)
                nxt="<a href=\"blah blah\">Next &raquo;</a>";
document.getElementById('blah blah').innerHTML='<td><img src='+src1+'><div><p>'+nxt+'</p><p>'+prev+'</p></div></td>';
div2.className ='blah blah';div2.style.height =pheight+'px';
div1.style.marginTop =h+'px';div1.style.height =myHeight+'px';
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T01:42:43+00:00Added an answer on May 16, 2026 at 1:42 am

    Add this where it best fits:

    <script type="text/javascript">
     window.onkeyup = function (event) {
      if (event.keyCode == 27) {
       window.close();
      }
     }
    </script>
    

    Changing window.close(); to destroy or hide your <div> tag containing the blown-up image.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://jsfiddle.net/nUcXQ/ How to get dynamic height on the main (black background) I'm using image
I run a small webpage that allows users to click on various links using
Iam using highslide js for my image blow up section and its working fine.
Apart from using image on the button, how can I write X Y on
I am using image view and gallery in my xml file. i am getting
I'm using this code to save images from a specific URL using Image::Grab .
Any idea how I can draw Bullet Points using Flex? instead of using image
I wonder whether someone could help me please. I'm using Image Uploader from Aurigma,
i want to make a tri-state checkbox inside listview control, iam using image list
I'm using an image loader (DevIL) for image loading. Im just wondering if the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.