PDA

View Full Version : Light not working



tauhui
02-24-2012, 11:19 AM
1) Script Title: Light box not working

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/lightbox/index.htm

3) Describe problem: Have installed everything in my webpage.
I have placed the link for js and css in under <head> and the folder can be view. All the png and gif have been put in my css/images folder and i have updated the link. Lastly, I added this code in the page which i want it to appear

<a href="dog.jpg" rel="lightbox" ><img src="dog_thumb.jpg" /></a>

I get a thumbnail pic appear on my page, but when i clicked it, it open another tab and show the picture in normal mode. What went wrong? Why isn't there a pop up?

Please help. Thanks.

jscheuer1
02-24-2012, 09:38 PM
Probably either a script conflict or one or more of the scripts are missing. But it might be something else.

If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.

tauhui
02-28-2012, 02:56 AM
Hi this is what i put in my page. This is the code for the page for gallery. All the link can be seen in dreamweaver but the pop out box doesn't appear but open another page to show the bigger image.. Please help thanks.


<script type="text/javascript" src="lightbox.js"></script>
<link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" />
<div id="nows">

<h2>Welcome To Our Gallery!</h2>
<div id="lightbox">
<a href="themes/default/css/images/image-1.jpg" rel="lightbox"><img src="themes/default/css/images/thumb-1.jpg" /></a>
</div>

</div>

jscheuer1
02-28-2012, 03:54 AM
Please include a link to the page on your site that contains the problematic code so we can check it out.