jquery - Link from one overlay to another -
i use jquery tools overlay feature.
my issue here is, want have link in 1 overlay open overlay while closing existing overlay.
how can make work?
<a href="#" class="takeatour" rel="#sitetour1">site tour</a> <div class="overlay" id="sitetour1"> step 1 <a href="#" rel="#sitetour2">click here learn more</a> </div> <div class="overlay" id="sitetour2"> step 2 </div> $("a[rel]").each(function(i) { $(this).overlay({ // common configuration each overlay oneinstance: false, closeonclick: true, expose: '#3fb8af', }); });
add this:
$('a[rel=#sitetour2]').click(function(e) { $('a[rel=#sitetour1]').overlay().close(); });
Comments
Post a Comment