내가 사용에서이 jQuery를 링크를 생성하는 방법 :JQuery와주기 - 앵커
<a title="Twitter" target="_self" href="/Twitter/tabid/86/Default.aspx" re_target="_self">
<img alt="" src="/portals/0/Images/positie1/header-twitter.png" />
</a>
:
$('#<%=ModuleControl.ModuleContext.ModuleId%>_Rotator div.DNNModuleContent > div.Normal').after('<ul class="RotatorNav">').cycle({
fx: 'fade', //effect to apply to rotation
speed: 1000, // speed of the transition (any valid fx speed value)
timeout: 5000, // milliseconds between slide transitions (0 to disable auto advance)
pager: '#<%=ModuleControl.ModuleContext.ModuleId%>_Rotator .RotatorNav', //selector for rotator navigation
allowPagerClickBubble: true,
// callback fn that creates a navigation to use as pager anchor
pagerAnchorBuilder: function(idx, slide) {
return '<li><a href="#">' + slide.title + '</a></li>';
}
});
그리고 내 bannercontainer에서 나는 배너와 앵커 텍스트를 지정하기위한이 두 줄을 사용하고
이제 클릭 할 때 특정 배너로 이동하는 대신 앵커를 클릭 할 때 특정 웹 페이지에 대한 하이퍼 링크가 필요합니다.
HTML 줄에 뭔가 있어야한다고 생각합니다.하지만 미안합니다. 누군가 도움이 되니?
감사합니다. href를 추가하려고했기 때문에 예제를 줄 수 있습니까? – Hans