| You are here: DEVPPL ‹ Forum ‹ Programming ‹ JavaScript Forum |
NOTIFICATIONS
|
|
|||||||||||||||
Login |
Lightbox 2 and div onclick?
4 posts
• Page 1 of 1
0
Lightbox 2 and div onclick?
Hello
Here is the link to lightbox 2 --> http://www.huddletogether.com/projects/lightbox2/
I use that lightbox thing and i gotta say its great. But i have a little problem. Ok i'll try to explain now. I have main div tag, which contains link (a tag) and that div has a background image, that changes on hover (mouseover) i have that link inside, because even if you go with your mouse over the link, the background changes.
You can see that little arrow on top, that shows when you go over div or link. Look image below:
What i want is, when you click on div, image shows with lightbox effect, how you achieve that? with onclick?
Here is the code as well:
Thank you,
Housy
Here is the link to lightbox 2 --> http://www.huddletogether.com/projects/lightbox2/
I use that lightbox thing and i gotta say its great. But i have a little problem. Ok i'll try to explain now. I have main div tag, which contains link (a tag) and that div has a background image, that changes on hover (mouseover) i have that link inside, because even if you go with your mouse over the link, the background changes.
You can see that little arrow on top, that shows when you go over div or link. Look image below:
What i want is, when you click on div, image shows with lightbox effect, how you achieve that? with onclick?
Here is the code as well:
- Code: Select all
<div class="left_house" onClick="???">
<a href="includes/KOR.IDE.50.pdf">Tloris - 50m<sup>2</sup></a>
</div>
Thank you,
Housy
- Housy
- Reputation: 0
- Posts: 2
- Joined: Wed May 13, 2009 9:02 pm
- Highscores: 0
- Arcade winning challenges: 0
0
Re: Lightbox 2 and div onclick?
Hi Housy,
You might find it useful to opt on:
http://javascript.about.com/library/blmodal.htm
http://www.dynamicdrive.com/dynamicinde ... lmodal.htm
http://www.queness.com/post/77/simple-j ... w-tutorial
You might find it useful to opt on:
http://javascript.about.com/library/blmodal.htm
http://www.dynamicdrive.com/dynamicinde ... lmodal.htm
http://www.queness.com/post/77/simple-j ... w-tutorial
- Rangana
- Reputation: 1
- Posts: 935
- Joined: Wed Feb 27, 2008 6:14 am
- Location: Cebu City Philippines
- Highscores: 0
- Arcade winning challenges: 0
0
Re: Lightbox 2 and div onclick?
I solved this problem. I actually added a new link instead of using onclick event. It is much easier thing to do, you just assign unchangeble width, height and display: block; in css and thats it.
Tnx anyway for your help,
Housy
Tnx anyway for your help,
Housy
- Housy
- Reputation: 0
- Posts: 2
- Joined: Wed May 13, 2009 9:02 pm
- Highscores: 0
- Arcade winning challenges: 0
0
Re: Lightbox 2 and div onclick?
hi i hav implemented lightbox 2.0..its woking fine..but now my validations are not wokring after implening light box...i hav checked wen i remove the code for lightbox 2.0..vadidations works fine..plz give me solution..
- Baljinder
- Reputation: 0
- Posts: 1
- Joined: Mon Jun 01, 2009 11:17 am
- Highscores: 0
- Arcade winning challenges: 0
|
|