Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > JavaScript

Reply
 
LinkBack Thread Tools
Old September 19th, 2008, 11:19 AM   #1
New Member
 

Join Date: Sep 2008
Location: Belfast UK
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 bode is on a distinguished road
Lightbox help

I'm building my first website using Adobe GoLive CS2 and everything is looking fairly good so far.

I need an image gallery and was under the impression that Lightbox 2.04 would be easy! I can't get this working at all. I've searched the web, but nothing helps.

Go Live creates a root folder for the site containing - web content, web data and web settings with the site file itself.

Where should the Lightbox files be placed? At the moment I have the three Lightbox folders inside web-content with the rest of the site files.

Where do all the lines of code go within the html? I've followed these instruction but unclear with 2.
http://www.huddletogether.com/projects/lightbox2/#how

Any help appreciated.
bode is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old September 19th, 2008, 11:42 AM   #2
Reputable Member
 

Join Date: Jul 2008
Location: UK and Spain
Age: 26
Posts: 114
Thanks: 2
Thanked 15 Times in 14 Posts
Rep Altering Power: 0 stu2000 is on a distinguished road
Re: Lightbox help

Hi bode,

When you unzip the Lightbox download, there should be a few of folders, copy the folders 'js', css' and 'images' onto your server in the same directory as your file.

once there, at the top of your page, in between your <head></head> tags, you copy the following:

Code:
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
You can see from the JavaScript above, lets take the first one for example, it's telling the code to search for a file called 'prototype.js' in the folder 'js' (js/prototype.js)... so this means that the folder 'js' must be in the same folder or directory as the file that you are pasting this code above into.

I hope that helps!

Last edited by stu2000; September 19th, 2008 at 11:47 AM.. Reason: typos!
stu2000 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old September 22nd, 2008, 09:50 AM   #3
New Member
 

Join Date: Sep 2008
Location: Belfast UK
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 bode is on a distinguished road
Re: Lightbox help

Hi,

Thanks for the reply. I managed to work it out (kind of). I understand the code a lot better now that I know that src is an address for the code to look.

I uploaded the code to my public html file removing the folders:
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript" src="scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="lightbox.js"></script>

<link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" />

I still have a few things to work out also:

Changing the position of the gallery image (move up a few pixels)
Changing border colours.

Last edited by bode; September 23rd, 2008 at 02:20 PM..
bode is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Variables in ASP with LightBox LeeNic Classic ASP 5 May 11th, 2009 04:22 AM
Lightbox - prev/next snappy JavaScript 0 July 4th, 2008 06:26 AM
Lightbox 2 Issue byrd80 JavaScript 10 March 13th, 2008 12:11 PM
Help with Lightbox tox0tes HTML, XHTML and CSS 4 September 6th, 2007 02:05 PM
Lightbox Questions saltedm8 JavaScript 5 May 21st, 2007 04:39 PM


Search Engine Optimization by vBSEO 3.2.0 RC8