SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2008
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Javascript Picture Question

    Hi I'm new to javascript and was having an issue displaying pictures the way I want them too. I really like having a pic as a button that loads a larger version of that pic in the center of the screen. The problem with this is I only can do this by making the larger pic one set size. I've seen a method where one clicks on a thumbnail pic and a semi-transparent window unfolds with a correctly formated version of the picture. My guess is it uses onClick to pop out the larger image, but how does the image stay apart from the first page it looks like its floating over the site like a new window. However, it lacks the new window format except for an exit button. I'm really interested and would like to learn to do this in some way.

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,683
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    That sounds like the Lightbox technique
    http://www.huddletogether.com/projects/lightbox2/
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Enthusiast
    Join Date
    Feb 2008
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanx just what i was looking for


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •