开发者

news ticker jquery plugin problem

开发者 https://www.devze.com 2023-02-16 03:05 出处:网络
i have a problem in \'News ticker\' jquery plugin. when i mouseover the news titles their link is something like [object object]

i have a problem in 'News ticker' jquery plugin. when i mouseover the news titles their link is something like [object object]

here i put my code:

http://bitcon开发者_开发技巧t.com/test/news-ticker/

what is the problem??


You're not doing anything wrong; I think there's a bug in the plugin itself. In runTicker, The plugin is printing out

// [object object]
tickerData.newsAttributes[tickerData.currentItem]

when it should be printing out either

// cached value of link.attr("href")
tickerData.newsLinks[tickerData.currentItem]

or

// cached value of the href HTML attribute
tickerData.newsAttributes[tickerData.currentItem].href

Patch it, and then maybe let the developer know?

0

精彩评论

暂无评论...
验证码 换一张
取 消