OK, replace this on the top page:
Code:
// Courtessy of jQuery.com
/*<![CDATA[*/
$(document).ready(function () {
//loop through all the children in #items
//save title value to a span and then remove the value of the title to avoid tooltips
$('#items .item').each(function () {
title = $(this).attr('title');
$(this).append('<span class="caption">' + title + '</span>');
$(this).attr('title','');
});
$('#items .item').hover(
function () {
//set the opacity of all siblings
$(this).siblings().css({'opacity': '0.1'});
//set the opacity of current item to full, and add the effect class
$(this).css({'opacity': '1.0'}).addClass('effect');
//show the caption
$(this).children('.caption').show();
},
function () {
//hide the caption
$(this).children('.caption').hide();
}
);
$('#items').mouseleave(function () {
//reset all the opacity to full and remove effect class
$(this).children().fadeTo('100', '1.0').removeClass('effect');
});
});
/*]]>*/
with:
Code:
// Courtessy of jQuery.com
/*<![CDATA[*/
$(document).ready(function () {
var title;
//loop through all the children in #items
//save title value to a span and then remove the value of the title to avoid tooltips
$('#items .item').each(function () {
title = $(this).attr('title');
$(this).append('<span class="caption">' + title + '</span>');
$(this).attr('title','');
});
$('#items .item').live('hover', function (e) {
if(e.type === 'mouseover'){
//set the opacity of all siblings
$(this).siblings().css({'opacity': '0.1'});
//set the opacity of current item to full, and add the effect class
$(this).css({'opacity': '1.0'}).addClass('effect');
//show the caption
$(this).children('.caption').show();
} else {
//hide the caption
$(this).children('.caption').hide();
}
});
$('#items').live('mouseleave', function () {
//reset all the opacity to full and remove effect class
$(this).children().fadeTo('100', '1.0').removeClass('effect');
});
});
/*]]>*/
Then where you have (also on the top page, add the highlighted):
Code:
// Courtessy of DynamicDrive.com
/***********************************************
* Ajax Tabs Content script v2.2- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
var mainmenu=new ddajaxtabs("menuholder", "contentholder")
mainmenu.setpersist(true)
mainmenu.setselectedClassTarget("link") //"link" or "linkparent"
mainmenu.init()
mainmenu.onajaxpageload=function(pageurl){
SexyLightbox.refresh();
//loop through all the children in #items
//save title value to a span and then remove the value of the title to avoid tooltips
var title;
$('#items .item').each(function(){
if(title = $(this).attr('title')){
$(this).append('<span class="caption">' + title + '</span>');
$(this).attr('title', '');
}
});
};
That's it! Now you may use the AJAX method of importation and both the SLB and the Spotlight gallery should work.
Bookmarks