•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 361,920 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,571 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 990 | Replies: 4 | Solved
![]() |
•
•
Join Date: Dec 2007
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
I am setting up a gallery using LightWindow or ThickBox.
I've added all the js & css files but the gallery will not work properly.
When I click on a thumbnail, the LightWindow or ThickBox is suppose to open and display the image, instead the image opens into a new window.
Please can someone help? What did I miss?
Thanks
I've added all the js & css files but the gallery will not work properly.
When I click on a thumbnail, the LightWindow or ThickBox is suppose to open and display the image, instead the image opens into a new window.
Please can someone help? What did I miss?
Thanks
Last edited by Atticus : Jan 1st, 2008 at 3:45 pm.
Hi Atticus,
Couple things you can check:
Couple things you can check:
- Open the site/page in IE/Firefox and check for JavaScript errors
- If #1 produces no errors, add a simple alert('Hello') to a section of the lightbox script that runs first
- If it doesn't run, and the alert resides in a function, make sure the function is being called
- Make sure the file is properly included using a <script></script> tag, place the tag at the very bottom of your page right before the closing <body> tag, append an alert('Hello'); to the end of the included file and it should pop up when the page loads.
- If the aforementioned alert doesn't show up, make sure the <script> tag has the type="text/javascript" attribute, that the file has read permissions, that the file page in the src="..." attribute is correct, and the tag has a closing tag and see if it works.
•
•
Join Date: Dec 2007
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
Hi Atticus,
Couple things you can check:
- Open the site/page in IE/Firefox and check for JavaScript errors
- If #1 produces no errors, add a simple alert('Hello') to a section of the lightbox script that runs first
- If it doesn't run, and the alert resides in a function, make sure the function is being called
- Make sure the file is properly included using a <script></script> tag, place the tag at the very bottom of your page right before the closing <body> tag, append an alert('Hello'); to the end of the included file and it should pop up when the page loads.
- If the aforementioned alert doesn't show up, make sure the <script> tag has the type="text/javascript" attribute, that the file has read permissions, that the file page in the src="..." attribute is correct, and the tag has a closing tag and see if it works.
Thanks very much. The gallery is now working fine. I did check the js files but missed the css href="css/lightbox.css". Thanks again.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
ajax asp cross-browser javascript menu with few lines of code developer development firefox home html internet javascript javascript smooth scrolling scroll smoothly window document position javascript tab menu with rounded corners generator microsoft msdn office prevent javascript menu from getting hidden under flash movies site software sql vista web
- Previous Thread: javascript css background-image
- Next Thread: Count the selected list box items using javascript


Linear Mode