JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 26th, 2012, 09:15 PM
cynga cynga is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2012
Posts: 2 cynga User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 1 m 10 sec
Reputation Power: 0
jQuery - Alternative jquery code that i wrote

i wrote a crossfade jquery code based on this


<div class="slider-postnum">
<div class="child1 divactive"><img /><p>A</p></div>
<div class="child2"><img /><p>B</p></div>
<div class="child3"><img /><p>C</p></div>
<div class="child4"><img /><p>D</p></div>
</div>

then i wrote this for the button
<div class="button-postnum">
<a href="#child1" class="linkchild1"><img /></a>
<a href="#child1" class="linkchild2"><img /></a>
<a href="#child1" class="linkchild3"><img /></a>
<a href="#child1" class="linkchild4"><img /></a>
</div>

child div are all position absolute and z-index of 0
with divactive class z-index of 3 and tobeactive class z-index of 2

each linkchildx are registered to a click function that do the following,

1. get the childx div inside slider div which has the divactive,
2. insert a tobeactive class to the one the will fade in,
3. fade out the div with divactive class
4. remove the div with divactive class from it.
5. insert divactive to div that has tobeactive.
6. remove the tobeactive class

so i don't have time to debug the code, it failed after move in side another slider, may i know if there is a similiar code that does this? this will be inside another slider,
so there will be multiple crossfade in each slide.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > jQuery - Alternative jquery code that i wrote

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap