Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Sat Nov 21, 2009 6:29 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ]  Bookmark and Share
Author Message
 Post subject: Lightbox 2 and div onclick?
PostPosted: Wed May 13, 2009 9:12 pm 
Offline

Joined: Wed May 13, 2009 9:02 pm
Posts: 2
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:
<div class="left_house" onClick="???">

    <a href="includes/KOR.IDE.50.pdf">Tloris - 50m<sup>2</sup></a>

</div>


Thank you,

Housy


Top
 Profile  
 
 Post subject: Re: Lightbox 2 and div onclick?
PostPosted: Thu May 14, 2009 6:01 am 
Offline
500+ Club
User avatar

Joined: Wed Feb 27, 2008 6:14 am
Posts: 929
Location: Cebu City Philippines
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

_________________
~ Get me some work, I do freelancing ~


Top
 Profile  
 
 Post subject: Re: Lightbox 2 and div onclick?
PostPosted: Thu May 14, 2009 5:23 pm 
Offline

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


Top
 Profile  
 
 Post subject: Re: Lightbox 2 and div onclick?
PostPosted: Mon Jun 01, 2009 11:30 am 
Offline

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley