Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-06-2013, 07:50 PM   PM User | #1
flurl
New Coder

 
Join Date: Jun 2012
Posts: 24
Thanks: 2
Thanked 0 Times in 0 Posts
flurl is an unknown quantity at this point
Smile Fancybox Loop

Hello! I am trying to get my fancybox to display separate galleries but it's looping through all of them. I have tried inserting several script snippets, creating a class and using the rel tag to group these images, to no avail, not sure if applying an additional JS script will do it or if this can be accomplished purely HTML. Any help you can give would be greatly appreciated! Here is a sample:

<li id="gallery3">

<div class="container_12">
<div class="grid_9 pad1">
<div class="wrapper">
<div class="decor"></div>
<div class="pad2">
<div class="grid_8 alpha">
<h2>Covers</h2>
<hr class="line2">
<div class="outside">
<div class="scroll">
<div>
<ul class="list4">
<li><figure><a rel="covers" href="images/horse1L.jpg"><img src="images/horse1.jpg" rel="covers" alt></a></figure></li>
<li><figure><a rel="covers" href="images/horse2L.jpg"><img src="images/horse2.jpg" rel="covers" alt></a></figure></li>
<li><figure><a href="images/tree1L.jpg"><img src="images/tree1.jpg" alt></a></figure></li>
<li><figure><a href="images/tree2L.jpg"><img src="images/tree2.jpg" alt></a></figure></li>
<li><figure><a href="images/unicorn1L.jpg"><img src="images/unicorn1.jpg" alt></a></figure></li>
<li><figure><a href="images/unicorn2L.jpg"><img src="images/unicorn2.jpg" alt></a></figure></li>
<li><figure><a href="images/flower1L.jpg"><img src="images/flower1.jpg" alt></a></figure></li>
<li class="last"><figure><a href="images/flower2L.jpg"><img src="images/flower2.jpg" alt></a></figure></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</li>
flurl is offline   Reply With Quote
Old 01-11-2013, 01:35 AM   PM User | #2
flurl
New Coder

 
Join Date: Jun 2012
Posts: 24
Thanks: 2
Thanked 0 Times in 0 Posts
flurl is an unknown quantity at this point
Thumbs up Solution

Removed these lines from my js/scripts.js file:

$('.list4>li>figure>a, .list6>li>figure>a').attr('rel','appendix')
.prepend('<span class="sitem_over"><strong></strong></span>')

Stay cool Detroit.
flurl is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:07 AM.


Advertisement
Log in to turn off these ads.