First thing I notice is that your image path is broken.
   
  Try fixing that 1st and maybe everything else will work out.
   
  

kirstyburgoine <[EMAIL PROTECTED]> wrote:
  
Hi,
I've been using this great jQuery lightbox plugin for a variety of
things and its always worked really well. Recently I've tried adding
into my own blog site I'm building using Wordpress and now I get an
error.

I put this into header.php:

  
www.postcardsfromtheborder.co.uk/wordpress/wp-content/themes/postcards/js/jquery.js"
 type=text/javascript>  

  
www.postcardsfromtheborder.co.uk/wordpress/wp-content/themes/postcards/js/jquery.lightbox-0.5.js"
 type=text/javascript>  


jquery.lightbox-0.5.css" type=text/css rel=stylesheet>

  
     $(document).ready(function() {
         $('#gallery a').lightBox();
     });
      
  
 /* jQuery lightBox plugin - Gallery style */
 #gallery {
  background-color: #444;
  padding: 10px;
  width: 520px;
 }
 ul#gallery  {
  background-color: #444;
  padding: 10px;
  width: 520px;
  list-style: none;
  overflow: scroll;
  }
  ul#gallery li { display: inline;

 }
 #gallery ul img {
  border: 5px solid #3e3e3e;
  border-width: 5px 5px 20px;
 }

 ul#gallery li a {
  display:inline;
 }
 ul#gallery a:hover img {
  border: 5px solid #fff;
  border-width: 5px 5px 20px;
  color: #fff;
 }
 ul#gallery a:hover { color: #fff; }
   

and then in wordpress when I write a post I view it in code view and
add the id=gallery to the   that is listing my images. But it
doesn't work. When I debug using the firefox extension firebug I get
the error
$("#gallery a") has no properties.

I thought that maybe my header couldn't see jquery.lightbox-0.5.js so
I changed the path to an absolute path. Also, originally my images
were contained in a   called gallery but wordpress seemed to
ignore my   tags in posts so I changed it so that   had the id
of gallery instead. Nothing seems to have worked.

I don't get why I'm having this problem with this plugin using
Wordpress when I've done nothing different from other sites I've used
it on. Its not as if I've mistaken it for a Wordpress plugin and tryed
to install it into Wordpress rather than my code or anything silly
like that.

You can view the grey box that should be my gallery here:
http://www.postcardsfromtheborder.co.uk/wordpress/

Somebody please tell me what I've missed.

Thanks
Kirsty






       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

Reply via email to