Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to make a thumbnail of an image appear with the whole image in a different larger frame

Featured Replies

Hey guys I wanted to know if anyone could recommend a script that will do the following...

 

I'm going to have a thumbnail picture and I would like it to basically appear in a separate "frame" (I guess) on top of the website where you can see the full size of the image. Do any of you have any examples or suggestions for doing something like that? Any help would be greatly appreciated. Thanks in advance.

 

-Ian

<!DOCTYPE html>
<head>
<meta charset='utf-8'/>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="http://www.jacklmoore.com/colorbox/colorbox/jquery.colorbox.js"></script>
<link rel="stylesheet" href="http://www.jacklmoore.com/colorbox/example1/colorbox.css" />
<script>
 $(document).on("click", "#clickme", function() {
  var html = '<img style="width:500px;" src="http://images4.fanpop.com/image/photos/23600000/Cartman-Respect-My-Authoritah-south-park-23629184-1600-1136.jpg">';
  $.colorbox({html:html,innerWidth:500});
  return false;
 });
</script>
</head>
<body>
<a href="#" id="clickme">
 <img src="http://images4.fanpop.com/image/photos/23600000/Cartman-Respect-My-Authoritah-south-park-23629184-120-85.jpg">
 click me
</a>
</body>
</html>

  • Author

Do you mean a "lightbox" effect?

 

If so there are tons of jquery plugins that can achieve this:

http://leandrovieira...query/lightbox/

 

and here are tons more :)

https://www.google.c...jquery lightbox

 

Yes that's exactly what I had in mind. So this is called a "lightbox"? Interesting. When you're a noob you learn new things every day. Thanks a lot guys.

 

-Ian

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.