如何将colorbox与动态链接ajax一起使用!
动态链接:
<a href="slider_2.jpg" class="kikou" rel="kikou" id="kikou" >
<img src="slider_2.jpg"/>
</a>
或添加动态rel?
$("#kikou").attr({rel: "kikou"});
脚本颜色框:
$('[a.kikou').colorbox({
rel: 'kikou',
transition: 'elastic',
speed: '350',
scrolling: false,
opacity: '0,85'
});
colorbox无法加载...