It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Lightbox 2 and div onclick?

Lightbox 2 and div onclick?

Postby Housy on Wed May 13, 2009 8:12 pm

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:

Image

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
 
Posts: 2
Joined: Wed May 13, 2009 8:02 pm

Re: Lightbox 2 and div onclick?

Postby rangana on Thu May 14, 2009 5:01 am

User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Re: Lightbox 2 and div onclick?

Postby Housy on Thu May 14, 2009 4:23 pm

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.

:D

Tnx anyway for your help,

Housy
Housy
 
Posts: 2
Joined: Wed May 13, 2009 8:02 pm

Re: Lightbox 2 and div onclick?

Postby baljinder on Mon Jun 01, 2009 10:30 am

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
 
Posts: 1
Joined: Mon Jun 01, 2009 10:17 am


Who is online

Users browsing this forum: No registered users and 4 guests