| DEVPPL http://www.devppl.com/forum/ |
|
| Lightbox 2 and div onclick? http://www.devppl.com/forum/viewtopic.php?f=49&t=13575 |
Page 1 of 1 |
| Author: | Housy [ Wed May 13, 2009 9:12 pm ] |
| Post subject: | 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: Code: <div class="left_house" onClick="???"> <a href="includes/KOR.IDE.50.pdf">Tloris - 50m<sup>2</sup></a> </div> Thank you, Housy |
|
| Author: | rangana [ Thu May 14, 2009 6:01 am ] |
| Post subject: | 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 |
|
| Author: | Housy [ Thu May 14, 2009 5:23 pm ] |
| Post subject: | 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 |
|
| Author: | baljinder [ Mon Jun 01, 2009 11:30 am ] |
| Post subject: | 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.. |
|
| Page 1 of 1 | All times are UTC + 1 hour |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|