.NET news » Search results
Search results for query "news" (13):
Use jQuery and ASP.NET to Build a News Ticker
Many websites display a news ticker of one sort or another. A news ticker is a user interface element that displays a subset of a list of items, cycling through them one at a time after a set interval. For example, on Cisco's website there is a news ticker that shows the company's latest news items. Each news item is a one sentence link, such as "Desktop Virtualization Gathers Steam," or "Cisco Reports First Quarter Earnings." Clicking a headline whisks you to a page that shows the full story. Cisco's news ticker shows one headline at a time; every few seconds the currently displayed headline fades out and the next one appears. In total, Cisco has five different headlines - the ticker displays each of the five and then starts back from the beginning.
This article is the first in a series that explores how to create your own news ticker widget using jQuery and ASP.NET. jQuery is a free, popular, open-source JavaScript library that simplifies many common client-side tasks, like event handling, DOM manipulation, and Ajax. This article kicks off the series and shows how to build a fairly simple news ticker whose contents can be specified statically in HTML markup or created dynamically from server-side code. Future installments will explore adding bells and whistles, such as: stopping the news ticker rotation when the mouse is hovered over it; adding controls to start, stop and pause the headlines; loading new headlines dynamically using Ajax; and packaging the JavaScript used by the ticker into a jQuery plugin.
Read on to learn more!
Pausing and Resuming the jQuery / ASP.NET News Ticker
Many websites display a news ticker of one sort or another. A news ticker is a user interface element that displays a subset of a list of items, cycling through
them one at a time after a set interval. In December 2010 I wrote an article titled Use jQuery and ASP.NET
to Build a News Ticker that explored how to create your own news ticker widget using jQuery and ASP.NET.
The news ticker's content is defined as an unordered list (<ul>) where each list item (<li>) represents a news headline.
Once the ticker's content is defined, having it cycle through the head lines is as simple as calling the JavaScript function
startTicker(id, numberToShow, duration), which begins cycling the headlines in the unordered list with the specified id,
showing numberToShow headlines at a time and cycling to the next headline every duration number of milliseconds.
This installment shows how to enhance the news ticker to enable pausing and resuming. With these enhancements, the ticker can be configured to automatically pause rotating its headlines when the user mouses over it, and to resume rotating them once the user mouses out. Similarly, with a bit of additional markup and script you can add pause and play buttons to a ticker, allowing a user to start and stop the ticker by clicking an image or button. Read on to learn more!
Making Sense of the XML DataType in SQL Server 2005
Bulky Data Is No Problem Thanks to Compression/Decompression in .NET 2.0
Consuming External Web Services with Microsoft Atlas
Working Around ASP.NET's HyperLink ImageUrl Bug
ImageUrl property can be,
in certain circumstances, incorrectly rewritten. The good news is that there is a simple workaround
that's made possible by the flexible architecture of ASP.NET.
Super Context Menu
Online Article: ASP.NET 2.0 Web Part Infrastructure
Web applications today do a number of things. They could be a banking site, a content management system, or a news Web site. In spite of the diversity of Web applications available today, it almost always makes sense to break a Web page into smaller, reusable widgets
Windows with C++: Thread Pool Synchronization
Converting XAML-Based Applications to Windows 8
The big news about Windows 8 is its new mode based on the Metro design language and UI paradigm. Metro apps are based on the new WinRT (Windows Runtime) and can be built in two distinct ways. One utilizes HTML5 and JavaScript, while the other uses XAML for the user interface definition and C#, Visual Basic, or native C++ as the language behind the scenes. Not surprisingly, the later has often been compared to other XAML-based setups, in particular Silverlight, but also WPF. After all, “XAML is XAML,” the reasoning goes, so it should not be difficult to move both WPF/Silverlight skills as well as actual applications into the new world of WinRT. But is that really so?


Syndicate