Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2001
    Posts
    39

    JavaScript News Thing in Yahoo

    If you go here:

    http://news.yahoo.com/

    you'll see that Yahoo now uses instantly loading tables (I think) for its news content. Clicking on one of the news sources at the top of each table instantly populates the body with links to top stories.

    Is this JavaScript? Or something else?

    Is there any source code publicly available that will duplicate the effect?

    Thanks.

  2. #2
    Join Date
    May 2005
    Location
    Roanoke, VA
    Posts
    36
    They're not tables. They're not "instantly loaded". All of the headlines are there in the page (look at the HTML), in DIVs with the class "moreheadlines". A rule in the CSS sets these DIVs to "display: none", and then a tiny bit of JavaScript is used to make the appropriate DIV visible (by changing that style setting) when you click on each news source.

    This is an extremely simple effect, provided you know JavaScript and CSS.
    You cooin' with my bird?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •