Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Pop up image. Not pop up window.
Old 08-27-2009, 02:44 PM Pop up image. Not pop up window.
Average Talker

Posts: 25
Trades: 0
Ever been on a site and see a thumbnail image that, when you click on it, pops up a bigger version of the picture right in the middle of your screen? It's not a window, it's just the image. Usually there's a little X in the top right or simply clicking the image itself makes it go away.

That's what I'm trying to do. I have snippets to pop up a window but that's kind of ugly and unprofessional anymore. I'd like to do what looks sleek and classy. Obviously it's possible since it's becoming ubiquitous. Anyone have some snippets of code I could use to do this? Thanks!
Fudge is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-27-2009, 05:52 PM Re: Pop up image. Not pop up window.
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Lightbox 2 (the original, requires Prototype with Scriptaculous)
Lightbox for jQuery
Lightbox for YUI
Lightbox for Dojo Toolkit
__________________
Join me on
Please login or register to view this content. Registration is FREE

Last edited by wayfarer07; 08-27-2009 at 05:55 PM..
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 08-27-2009, 06:06 PM Re: Pop up image. Not pop up window.
Average Talker

Posts: 25
Trades: 0
Quote:
Originally Posted by wayfarer07 View Post
Lightbox 2 (the original, requires Prototype with Scriptaculous)
Lightbox for jQuery
Lightbox for YUI
Lightbox for Dojo Toolkit
Thank you. But...

Idiot questions:

1) What is Prototype?

2) What is Scriptaculous?
Fudge is offline
Reply With Quote
View Public Profile
 
Old 08-27-2009, 06:08 PM Re: Pop up image. Not pop up window.
rkuwadia's Avatar
Average Talker

Posts: 14
Name: Ravi Kuwadia
Trades: 0
Can you post the solution once you find out? It will be helpful for lot of people.
I can use the same code snippet as well.

Thanks
__________________
Ravi Kuwadia -
Please login or register to view this content. Registration is FREE
rkuwadia is offline
Reply With Quote
View Public Profile
 
Old 08-27-2009, 06:09 PM Re: Pop up image. Not pop up window.
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Prototype is a JavaScript framework. Scriptaculous is its user interface library.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 09-01-2009, 03:01 PM Re: Pop up image. Not pop up window.
Average Talker

Posts: 25
Trades: 0
Well, I've put the code for Lightbox on the site but now I'm having problems. The images don't show up even though I've linked them properly in the JS files (../images/close.gif). Not sure what's up. The overall popup function works but the buttons aren't there and it's pretty worthless without the "close" button.

Any ideas?
Fudge is offline
Reply With Quote
View Public Profile
 
Old 09-01-2009, 03:32 PM Re: Pop up image. Not pop up window.
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
paths in a JS file should be considered to be relative to the HTML document, not the JS file. Just make sure everything is correct according to this.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 09-01-2009, 04:21 PM Re: Pop up image. Not pop up window.
Average Talker

Posts: 25
Trades: 0
Quote:
Originally Posted by wayfarer07 View Post
paths in a JS file should be considered to be relative to the HTML document, not the JS file. Just make sure everything is correct according to this.
Ah! Thanks. Fixed it. The one last problem I have is that there's a purple line around the image. How do I get rid of that?
Fudge is offline
Reply With Quote
View Public Profile
 
Old 09-01-2009, 11:20 PM Re: Pop up image. Not pop up window.
Average Talker

Posts: 25
Trades: 0
Fixed the last problem. Site is 100% functional.
Fudge is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Pop up image. Not pop up window.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.48137 seconds with 12 queries