Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Client Side Scripting
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 11-10-2009, 11:35 PM
  #1
DismantleDesign
Aspirant (Level 2)
 
Join Date: Mar 2009
Posts: 19
iTrader: (0)
DismantleDesign is an unknown quantity at this point
Slimbox image grouping

I am trying to get this Slimbox javascript to work a certain way. I know how to call it in my code such as

Code:
	<script type="text/javascript" src="js/mootools.js"></script>
    <script type="text/javascript" src="js/slimbox.js"></script>
	<link rel="stylesheet" href="css/slimbox.css" type="text/css" media="screen" />
and I know how to make one image bring up another such as

Code:
<a href="image.jpg" rel="lightbox" title="image"><img src="imagethumb.jpg" border="0" alt=""/></a>
but I want one image to bring up the slimbox and say image 1 of 10 or whatever so i can click the next button and go through the images. I want to use slimbox and i have the next button gif that came with the free files from the slimbox site, but I cant seem to find a way to get it to do that. I have seen it on somebody elses website using slimbox, i know, because its not easy to mistake slimbox. i just forgot what site it was.

One page I found said to do that by doing something like

Code:
<a href="image.jpg" rel="lightbox-group1" title="image"><img src="imagethumb.jpg" border="0" alt=""/></a>
and adding to the REL command. That didn't help AT ALL. because i want one image to call many. Does this make sense?

The slimbox site doesn't help me any. According to the way they have grouping set up, you have to set up a link for every single image. I just want to associate one image as a link per 10 images in a slimbox. Thanks in advance.

Last edited by DismantleDesign : 11-10-2009 at 11:45 PM.
DismantleDesign is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-11-2009, 03:51 AM
  #2
coothead
~ bald headed old fart ~
 
coothead's Avatar
 
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 8,845
iTrader: (0)
coothead has much to be proud ofcoothead has much to be proud ofcoothead has much to be proud ofcoothead has much to be proud ofcoothead has much to be proud ofcoothead has much to be proud ofcoothead has much to be proud ofcoothead has much to be proud ofcoothead has much to be proud ofcoothead has much to be proud of
Hi there DismantleDesign,

I have worked on lightbox for another member here.
I would presume that it's workings are similar to that of slimbox.

To have one link work many images in a group requires that you code a link for each image, as normal....
Code:

<a href="images/image-3.jpg" rel="lightbox[plants]" title="Roll over and click right side of image to move forward.">
<img src="images/thumb-3.jpg" alt="Plants: image 1 0f 4 thumb" >
</a>
<a class="hide" href="images/image-4.jpg" rel="lightbox[plants]"  title="Alternatively you can press the right arrow key.">
<img src="images/thumb-4.jpg" alt="Plants: image 2 0f 4 thumb">
</a>
<a class="hide" href="images/image-5.jpg" rel="lightbox[plants]"  title="The script preloads the next image in the set as you're viewing.">
<img src="images/thumb-5.jpg" alt="Plants: image 3 0f 4 thumb">
</a>
<a class="hide" href="images/image-6.jpg" rel="lightbox[plants]"  title="Press Esc to close">
<img src="images/thumb-6.jpg" alt="Plants: image 4 0f 4 thumb">
</a>
...and then set all but the first link to display:none in your stylesheet....
Code:

.hide {
    display:none;
 }
__________________
coothead is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-11-2009, 12:02 PM
  #3
DismantleDesign
Aspirant (Level 2)
 
Join Date: Mar 2009
Posts: 19
iTrader: (0)
DismantleDesign is an unknown quantity at this point
You presume correct. Slimbox is a lite version of lightbox. It uses the rel="lightbox" command still.

I see what you did there with the hide code. Nice work. You guys never fail to amaze me with your quick and awesome repsonses. Thank you again, Coothead. I will have to test that out when I get home from work.
DismantleDesign is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-11-2009, 12:18 PM
  #4
coothead
~ bald headed old fart ~
 
coothead's Avatar
 
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 8,845
iTrader: (0)
coothead has much to be proud ofcoothead has much to be proud ofcoothead has much to be proud ofcoothead has much to be proud ofcoothead has much to be proud ofcoothead has much to be proud ofcoothead has much to be proud ofcoothead has much to be proud ofcoothead has much to be proud ofcoothead has much to be proud of
No problem, you're very welcome.
__________________
coothead is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Reply
KEEP TABS
SPONSORS
 
Boxedart

 
 


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



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 05:42 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.