Results 1 to 6 of 6

Thread: theherald columns read

  1. #1
    Join Date
    Jan 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post theherald columns read

    Hi, please check the way articles are shown in the herald website.
    It has pagin and columns for reading articles. Anyone familiar with some free javascript code to do this? this could be very popular!

    http://www.theherald.co.uk/news/53977.html

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Why use Javascript for layout? That's a simple CSS stylesheet. There are plenty of examples of the same available on the web.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jan 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Where?

    Can you please give a link for such an example.

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    http://glish.com/css/2.asp
    Needs a little tweaking for your purposes, but should do fine.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Jan 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool

    I'm afraid you answered too quickly without taking a look in the link I brought before. CSS might be part of the solution here but there is more - the article is using javascript to be printed which find the width and height of the 3 columns and calculates the font size and how many words can be printed in the layout. You are also able to move between pages in the article. Although the whole article is places in one <div> the page's javascript makes calculation and prints it very nicely.

    Go have a look!

  6. #6
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The Herald is a terrible site which breaks utterly when client-side scripting is disabled. Don't try to emulate it.

    Mike

Bookmarks

Posting Permissions

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