Office Live Small Business Community Forums

First image with light box problem....

Last post 08-20-2008 11:28 AM by founding_papa. 8 replies.
Page 1 of 1 (9 items)
Sort Posts:
08-16-2008 10:32 AM
founding_papa Joined on 07-15-2008 Posts 26
First image with light box problem....

Hi All,

I have implemented Royster's Light Box and really like it. The only problem I am experiencing is with the first picture in a series of images. For some reason only the 1st picture is displayed with scroll bar and all the others are not. Is there any way to get rid of the scroll bars?

 

Here is the code to display the 1st image:


<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

  <xsl:output method="html" />

  <xsl:template match="/Footer">
<script type="text/javascript" src="/Documents/prototype.jsx" mce_src="/Documents/prototype.jsx"></script>
<script type="text/javascript" src="/Documents/scriptaculous.jsx?load=effects,builder" mce_src="/Documents/scriptaculous.jsx?load=effects,builder"></script>
<script type="text/javascript" src="/Documents/lightbox.jsx" mce_src="/Documents/lightbox.jsx"></script>
<link rel="stylesheet" href="/Documents/lightbox.css" mce_href="/Documents/lightbox.css" type="text/css" media="screen" />
<a href="images/appleseed.jpg" mce_href="images/appleseed.jpg" rel="lightbox" title="Johnny 'Appleseed' Chapman"><img src="/images/appleseed.jpg"  style="width: 100px; height: 100px" border="0"/></a>     
  </xsl:template>

</xsl:stylesheet>


Here is the code for all the rest of the images:


<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

  <xsl:output method="html" />

  <xsl:template match="/Footer">
      <a href="images/bunyan.jpg" mce_href="images/bunyan.jpg" rel="lightbox" title="Paul Bunyan"><img src="/images/bunyan.jpg"  style="width: 100px; height: 100px" border="0"/></a>
  </xsl:template>
</xsl:stylesheet>

Here is the web page: http://mycountryisamerica.com/americanfolkhereos.aspx

Any help would be great.

08-16-2008 8:47 PM In reply to
royster Joined on 02-12-2008 Posts 1,478
Re: First image with light box problem....
08-18-2008 10:09 AM In reply to
founding_papa Joined on 07-15-2008 Posts 26
Re: First image with light box problem....

No I didn't, let me check again - that's strange??

08-18-2008 10:17 AM In reply to
founding_papa Joined on 07-15-2008 Posts 26
Re: First image with light box problem....

Yep, still there....

08-18-2008 3:26 PM In reply to
StudioAllen Joined on 02-08-2008 Dorr, MI Posts 1,893
Re: First image with light box problem....

Noticed it here as well, I'm going to guess either the picture is too small or your title is too long so either make the picture bigger or shorten your title.

StudioAllen
Solutions for Office Live How to Verify your site on Google Webmasters!
08-18-2008 7:29 PM In reply to
royster Joined on 02-12-2008 Posts 1,478
Re: First image with light box problem....

OK.. I see it now - it works perfectly on Firefox though, just not on IE.

Shorten your caption Johnny 'Appleseed' Chapman. If you want to maintain the same caption, extend the width of your image slightly longer.

Royster

08-20-2008 7:54 AM In reply to
founding_papa Joined on 07-15-2008 Posts 26
Re: First image with light box problem....

I made the image larger and the caption smaller and it still is not working. All other images are just fine. The code I am using I placed in the custom footer module.

Here is what is happening now...

08-20-2008 9:12 AM In reply to
royster Joined on 02-12-2008 Posts 1,478
Re: First image with light box problem....

You have some extra closing tags in your </span> and </a>. I can't see it very clearly from your code, but you can certainly check it yourself.

Royster

08-20-2008 11:28 AM In reply to
founding_papa Joined on 07-15-2008 Posts 26
Re: First image with light box problem....

Yah, I fixed it, thanks to your suggestion.

There were some invisible hyperlinks in some of the cells of the table. I pressed Ctrl-A to highlight the entire table and that is where I saw soms extra spaces which were hyperlinks.

Advertisement