/    Sign up×
Community /Pin to ProfileBookmark

Pop up image when you click ‘here’

I need to show an image that is in my ‘images’ folder – (how-to-details.jpg) if you click ‘here’ . Need to control the size of the image (not a full web page), and be able to close the image by ‘X’ out or ‘close this window’ or whatever.

Is there a short program that will do that ?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@KDLAMay 27.2009 — Take a look at this: http://famspam.com/facebox
Copy linkTweet thisAlerts:
@DanDadauthorMay 30.2009 — Thank You, Thank You, Thank You.
Copy linkTweet thisAlerts:
@DanDadauthorMay 30.2009 — Oops

I need a bit more help, if you can spare the time.

I need to use the utility represented on the referenced page by

<a href="stairs.jpg" rel="facebox">text</a> .

But when I click on what I created, it loads Microsoft's Paint Program in another window, with the image selected.

Here's what I did...

  • 1. Copied facebox-1.2.tar.gz into a folder called facebox.

  • 2. Placed an image named Full-Ext_Floor-Mount_Glides.jpg in a folder called images

  • 3. Copied jquery-1.3.2.min.js into the same directory as my HTML file

  • 4. Inserted in my HTML, positioned just before the </head>,

    <script src="jquery.js" type="text/javascript"></script>

    <link href="/facebox/facebox.css" media="screen" rel="stylesheet" type="text/css"/>

    <script src="/facebox/facebox.js" type="text/javascript"></script>


  • Inserted the call <a href="images/Full-Ext_Floor-Mount_Glides.jpg" rel="facebox">Why Full-Extension</a>

    Can you please tell me where I've gone wrong ?
    ×

    Success!

    Help @DanDad spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.28,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...