나는 당신의 문제를 해결했다고 생각하지만, 당신이 그것을 만든 것처럼 당신의 바이올린이 작동하지 않기 때문에 그것을 테스트 할 수 없습니다.
이 함께
Appends image captions to the DOM
의 코드를 변경
:
/**
* Appends image captions to the DOM
* NETCreator enhancement (http://www.netcreator.ro)
*/
var appendCaptions = function(){
// cycle through each child
slider.children.each(function(index){
// get the image title attribute
var title = $(this).find('img:first').attr('title');
var nc_subtitle = $(this).find('img:first').attr('nc-subtitle');
// append the caption
if (title != undefined && ('' + title).length && nc_subtitle != undefined && ('' + nc_subtitle).length) {
$(this).append('<div class="bx-caption"><span class="title">' + title + '</span><br/><span class="nc_subtitle">' + nc_subtitle + '</span></div>');
}
});
}
이제 캡션 제목에 자막을 추가 할 수 있습니다 당신이 원하는대로
<a href ="page.php">
<img src="http://calindragan.files.wordpress.com/2011/01/winter.jpg" title="title 1 here" nc-subtitle="The second title"/>
</a>
당신은 자막 스타일을 지정할 수 있습니다, CSS 클래스를 사용하여 nc_subtitle
.
희망이 있습니다. 이와
http://pastebin.com/0fvUezg1
그리고 HTML :
편집
변경이와 바이올린에 당신에 의해 공유 전체 자바 스크립트
http://pastebin.com/T038drDV
그것은 작동합니다.
귀하의 바이올린이 작동하지 않습니다 ... –
하여 바이올린을합니다. 꽤 많이 있습니다. 그 바이올린을 작동시키는 법을 모르겠습니다. 그것은 내 웹 사이트에서 일하고있어. – RandomPleb
알겠습니다. 내 대답을 확인하십시오. –