You are here: DEVPPL Forum Programming JavaScript Forum
NOTIFICATIONS
54.091
MEMBERS
15.687
TOPICS
62.261
POSTS
  562
FLASH GAMES
7.740
TUTORIALS
 

Login

E-mail:
Password:

Lightbox 2 and div onclick?

0

Loading

Lightbox 2 and div onclick?

Postby Housy » Wed May 13, 2009 9: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
 
Reputation: 0
Posts: 2
Joined: Wed May 13, 2009 9:02 pm
Highscores: 0
Arcade winning challenges: 0

Lightbox 2 and div onclick? - Sponsored results

Sponsored results

Login to get rid of ads

 

0

Loading

Re: Lightbox 2 and div onclick?

Postby Rangana » Thu May 14, 2009 6:01 am

Rangana
 
Reputation: 1
Posts: 935
Joined: Wed Feb 27, 2008 6:14 am
Location: Cebu City Philippines
Highscores: 0
Arcade winning challenges: 0
0

Loading

Re: Lightbox 2 and div onclick?

Postby Housy » Thu May 14, 2009 5: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
 
Reputation: 0
Posts: 2
Joined: Wed May 13, 2009 9:02 pm
Highscores: 0
Arcade winning challenges: 0
0

Loading

Re: Lightbox 2 and div onclick?

Postby Baljinder » Mon Jun 01, 2009 11: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
 
Reputation: 0
Posts: 1
Joined: Mon Jun 01, 2009 11:17 am
Highscores: 0
Arcade winning challenges: 0
^ Back to Top