View Single Post

  #1 (permalink)  
Old 25-04-2008, 02:53 PM
sticker sticker is offline
Coder
 
Join Date: Apr 2008
Posts: 77
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
sticker will become famous soon enough
Default Lightbox2 CSS help!!

I'm tring to figure out Lightbox2 - I understand it's a commonly used bit of software and wondered if anyone here might be able to help me...

homepage Lightbox 2

I don't have a lot of CSS experience, is this the correct place for the script code?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<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>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>

<body>
<a href="http://forums.techguy.org/images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
<p>TEST</p>
<p>&nbsp; </p>
</body>
</html>


I've downloaded the lightbox2 files - dumped the contents of the folders into the root directory of the site (css/images/js)

By the by the css file is appearing as a .txt file - ?!

Anyway I've also added the line of code for the image - see above "<a href="http://forums.techguy.org/images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>"

The preview in firefox simply shows a hotlink "image #1" which loads the larger image at the bottom of the page - not as it should...

Am I missing anything with the css files that come with the appliation? do I just dump them into the root directory?

Any ideas? - I'd love the get this figured!
Reply With Quote