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

  • SEARCH
  • Home
  • 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 7729787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:03:36+00:00 2026-06-01T06:03:36+00:00

How could I implement an image preview feature like Google image search result, when

  • 0

How could I implement an image preview feature like Google image search result, when clicked on a thumbnail, Google shows a preview of website on the background and preview of the image on the foreground.

Is that possible to use Lightbox/Fancybox (or a clone of them) and iframe options? Do you have any suggestions or solutions?

  • 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-06-01T06:03:37+00:00Added an answer on June 1, 2026 at 6:03 am

    making this type of lightbox is easy. You don’t necessarily need to use Lightbox/Fancybox.
    there are actually many examples of this online that you could use for a model…for instance I just found this one
    http://www.emanueleferonato.com/2007/08/22/create-a-lightbox-effect-only-with-css-no-javascript-needed/

    what I generally do for this type of pop-up-like thing is make a div with the following properties:

    position:fixed;
    top:left;
    height:100%;
    z-index:(something high);
    background-color:rgba(255,255,255,0.8);
    display:none;
    

    this will cover the page with a semi-transparent layer, or curtain
    what I generally do to display the curtain is attach a function that sets “display:none” to “display:block” ( or alternatively, uses jquery’s .toggle() ) to a click event somewhere on the page.

    make sure that the contents of the pop-up are also initialized as display:none; in the css

    I would then put the image inside the div, and position it with position: absolute;

    I used this type of curtain/pop-up here on this page…http://asdf.us/imgrid/greatgrids
    click “select, then click here for details”

    EDIT : after reading your comment, I realize that this is more about using iframes WITH lightboxes. I would be careful using iframes, because some sites (like stackoverflow.com, for example) disallow iframe linking. Try this example below:

    <html><head><style>
    iframe, #curtain{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    }
    #curtain{
    background-color:rgba(255,255,255,0.8);
    z-index:10;
    text-align:center;
    }
    #theimg{
    padding:20px;
    border:1px solid black;
    }
    </style>
    </head>
    <body>
    <iframe src="http://en.wikipedia.org/wiki/Stack_overflow"></iframe>
    <div id="curtain">
      <img id="theimg" src="http://upload.wikimedia.org/wikipedia/en/thumb/8/80/Wikipedia-logo-v2.svg/220px-Wikipedia-logo-v2.svg.png"></img>
    </div>
    </body></html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Could mapreduce be used to implement a webserver? I'm thinking something like when a
I'm trying to implement something like a photo carousel in jQuery. This carousel could
I was looking to implement something like the image below, and really have no
I've been trying to re-implement an HTML5 image uploader like the one on the
I'm looking for some suggestions as to how I could implement a World Map
I am using a ContextMenu for an AdvancedDataGrid in my application. I could implement
How could i implement Type-Safe Enumerations in Delphi in a COM scenario ? Basically,
How could I implement loading timer that are automatically appended to the each displayed
how could i implement autosave in C#? i felt that saving to the currently
Problem in short: How could one implement static if functionality, proposed in c++11, in

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.