我使用創建鏈接這個jQuery:jQuery的循環 - 如何從錨
$('#<%=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我用這兩條線用於指定旗幟,錨文本:
<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>
現在我想在點擊錨點時指向特定網頁的超鏈接,而不是點擊時轉到特定的橫幅。
我認爲它應該是HTML行的東西,但我不是那麼好,對不起。有人幫忙嗎?
感謝您的快速反應。你能給我一個例子,因爲我試圖添加一個href。 – Hans 2011-12-28 18:32:12