0
有人能幫助我合併這種同位素,使其成爲在中心同位素中心Mansory爲
jQuery.noConflict();
(function($) {
$(function() {
var resizeTimer = null;
jQuery(window).bind('load resize', function() {
if (resizeTimer) clearTimeout(resizeTimer);
resizeTimer = setTimeout("tz_init("+"350)", 100);
});
var $container = $('#container'),
$body = $('body'),
colW = 0,
columns = null;
$container.imagesLoaded(function(){
$container.isotope({
itemSelector : '.element',
layoutMode: 'masonry',
resizable: true,
masonry: {
columnWidth: colW
}
});
tz_init(350);
});
jQuery(document).ready(function(){
jQuery.callFunction("tz_init(358)");
});
});
})(jQuery);
//FILTERING
function loadPortfolio(){
var $optionSets = $('#options .option-set'),
$optionLinks = $optionSets.find('a');
$optionLinks.click(function(event){
event.preventDefault();
var $this = $(this);
// don't proceed if already selected
if ($this.hasClass('selected')) {
return false;
}
var $optionSet = $this.parents('.option-set');
$optionSet.find('.selected').removeClass('selected');
$this.addClass('selected');
// make option object dynamically, i.e. { filter: '.my-filter-class' }
var options = {},
key = $optionSet.attr('data-option-key'),
value = $this.attr('data-option-value');
// parse 'false' as false boolean
value = value === 'false' ? false : value;
options[ key ] = value;
if (key === 'layoutMode' && typeof changeLayoutMode === 'function') {
// changes in layout modes need extra logic
changeLayoutMode($this, options)
} else {
// otherwise, apply new options
$container.isotope(options);
}
return false;
});
}
loadPortfolio();
從現場的人?
http://isotope.metafizzy.co/custom-layout-modes/centered-masonry.html
我不是那種善於jQuery和它給了我的問題,從我所看到的,在我的網站同位素不無jQuery.noConflict工作
沒人能幫助我嗎? – 2013-02-09 21:56:15
你想實現什麼? – confile 2013-05-11 12:49:01