bcapp
11-21-2010, 06:30 AM
I am currently working on a portfolio website and am using a Jquery slider for the images. The slider is broken up into the main image (displays a large image in a window) and a thumbnail area with thumbnail images in an unordered list. There is also a description area which is animated with jquery so that you can show/hide it. The way that the code is set up has it so that when you first come to the website what you see is the first main image with the description area for that image. When you click off of the current image (first image in the thumbnail list) to view another image then go back to the first image (the one that first showed up when you click go on the website) it is not the same image in the code (it is the same because the way it is set up is with the same main image and description...it is identical to the code for the first image that the user sees when they go to the website). I will illustrate what I am talking about to make it easier to understand (this is leading to a question...dont worry).
<div "class"=main image>1st main image</div>
<div class="description">description for 1st image</div>
<div "class"=thumbnails>
<a href="1st main image"><img src="1st main image thumbnail"/>
<div class="description">description for 1st image</div>
and so on for all of the images
My question is...I am using slimbox (almost exactly the same as lightbox) and i have it so that in the desciption area you can, through links, view the actual website and then use slimbox so that the user can see larger images/more images of the current image that they are on. I have it working on that first section (the first image that the user comes to when they go to the website) but then when you click off to view another image (when it goes to the thumbnail area) when I try to use slim box (I use it exactly as I did in the first section...add rel="lightbox" in the <a href> tag, it just opens the image the default way (white page and image is in the upper left hand corner). I dont know why it will not work and have tried countless things without any luck. If anyone can please help me out it would be much appreciated. I will post the code being used for one of the pages so you can look at it if that helps.
<div id="main" class="container">
<div class="main_image">
<img src="../images/main_images/inspires_me.jpg" alt="WhatInspiresMe" />
<div class="description">
<a href= "#" class="collapse"><h3>Description</h3></a>
<div class="block">
<h2>What Inspires Me?</h2>
<p>February 2010</p>
<p><strong>Purpose:</strong><br>To create a website based on eight inspirations in my life.</p><br><p><strong>Programs Used:</strong><br>Adobe Illustrator, Adobe Flash and Adobe Dreaweaver</p><br><p><a href="http://www.oswego.edu/~capp/BC_417/Project_One/site/index" target="_blank">View Website</a></p><a href="../images/banner_big.png" rel="lightbox"><p>More Images</p></a>
</div>
</div>
</div>
<div class="image_thumbs">
<ul>
<li>
<a href="../images/main_images/inspires_me.jpg"><img src="../images/thumbs/inspiresMe_thumb.png" alt="" /></a>
<div class="block">
<h2>What Inspires Me?</h2>
<p><strong>Purpose:</strong><br>
To create a website based on eight inspirations in my life<br>
</p>
<p><strong>Programs Used:</strong><br>
Adobe Illustrator, Adobe Flash and Adobe Dreaweaver<br></p>
<p><a href="http://www.oswego.edu/~capp/BC_417/Project_One/site/index" target="_blank">View Website</a></p>
<a href="../images/banner_big.png" rel="lightbox"><p>More Images</p></a>
</div>
The area with in the main image div (first thing the user goes to when going to the website) works with the slimbox but the thumbnails area (i only showed the first image section of the thumbnail code) does not work even though it should. And i should mention that I did try to use lightbox but it wouldnt work because I am also using jquery so i decided to use slidebox which is jquery based. Any help would be appreciated. Thank you and sorry for such a long description.
<div "class"=main image>1st main image</div>
<div class="description">description for 1st image</div>
<div "class"=thumbnails>
<a href="1st main image"><img src="1st main image thumbnail"/>
<div class="description">description for 1st image</div>
and so on for all of the images
My question is...I am using slimbox (almost exactly the same as lightbox) and i have it so that in the desciption area you can, through links, view the actual website and then use slimbox so that the user can see larger images/more images of the current image that they are on. I have it working on that first section (the first image that the user comes to when they go to the website) but then when you click off to view another image (when it goes to the thumbnail area) when I try to use slim box (I use it exactly as I did in the first section...add rel="lightbox" in the <a href> tag, it just opens the image the default way (white page and image is in the upper left hand corner). I dont know why it will not work and have tried countless things without any luck. If anyone can please help me out it would be much appreciated. I will post the code being used for one of the pages so you can look at it if that helps.
<div id="main" class="container">
<div class="main_image">
<img src="../images/main_images/inspires_me.jpg" alt="WhatInspiresMe" />
<div class="description">
<a href= "#" class="collapse"><h3>Description</h3></a>
<div class="block">
<h2>What Inspires Me?</h2>
<p>February 2010</p>
<p><strong>Purpose:</strong><br>To create a website based on eight inspirations in my life.</p><br><p><strong>Programs Used:</strong><br>Adobe Illustrator, Adobe Flash and Adobe Dreaweaver</p><br><p><a href="http://www.oswego.edu/~capp/BC_417/Project_One/site/index" target="_blank">View Website</a></p><a href="../images/banner_big.png" rel="lightbox"><p>More Images</p></a>
</div>
</div>
</div>
<div class="image_thumbs">
<ul>
<li>
<a href="../images/main_images/inspires_me.jpg"><img src="../images/thumbs/inspiresMe_thumb.png" alt="" /></a>
<div class="block">
<h2>What Inspires Me?</h2>
<p><strong>Purpose:</strong><br>
To create a website based on eight inspirations in my life<br>
</p>
<p><strong>Programs Used:</strong><br>
Adobe Illustrator, Adobe Flash and Adobe Dreaweaver<br></p>
<p><a href="http://www.oswego.edu/~capp/BC_417/Project_One/site/index" target="_blank">View Website</a></p>
<a href="../images/banner_big.png" rel="lightbox"><p>More Images</p></a>
</div>
The area with in the main image div (first thing the user goes to when going to the website) works with the slimbox but the thumbnails area (i only showed the first image section of the thumbnail code) does not work even though it should. And i should mention that I did try to use lightbox but it wouldnt work because I am also using jquery so i decided to use slidebox which is jquery based. Any help would be appreciated. Thank you and sorry for such a long description.