在.NET中寻找类似于AdRotator的东西
我正在开发一个轮流推荐的网站。我需要类似于 .NET 中的 AdRotator
类的东西。然而,我不想旋转图像,而是想旋转使用 HTML/CSS 格式化的文本块。源可以是 XML 文件,就像广告旋转器一样,但我需要三个元素。
Quote
Author Name
Author Position Title
有谁知道 .NET 中有这样做的东西吗?如果没有,那么我想我将开始编写一个线程安全的解决方案。
谢谢, 麦克风
I'm working on a website that has a rotation of testimonials. I need something that is similar to the AdRotator
class in .NET. However instead of rotating images I'd like to rotate text blocks which are formated with HTML/CSS. The source can be an XML file just like the ad rotator but I need three elements.
Quote
Author Name
Author Position Title
Does anyone know of something in .NET that does this? If not then I guess I will start working on writing a thread safe solution.
Thanks,
Mike
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果你用 Google 搜索 JavaScript 文本旋转器,你会发现很多你想要的例子。但是,您必须编写代码以从 XML 文件(或数据库)获取数据,并将其写入页面,以便 JavaScript 函数可以访问它。
If you Google for JavaScript text rotators, you will find a lot of examples of what you want. However, you will have to write the code to get the data from the XML file (or from a database) and write it out into the page in such a way that the JavaScript functions can access it.
关闭。我已经为此编写了自己的实用方法。
Closed. I've gone ahead and wrote my own utility method for this.