Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • jing.ling 29 posts 20 karma points
    Mar 18, 2009 @ 05:34
    jing.ling
    0

    how to list news with alternative background? (problem solved)

    Hi, I am writing a XSLT to list news with alternative background css file. For example:

    News1:
    [code]


    news content

    [/code]

    News2:
    [code]

    news content

    [/code]

    News3:
    [code]

    news content

    [/code]

    News4:
    [code]

    news content

    [/code]

    ect...

    Can anyone give me some ideas how to do that?

    Thanks

  • Jesper Hauge 298 posts 487 karma points c-trib
    Mar 18, 2009 @ 10:08
    Jesper Hauge
    0

    I'm not sure if your example is correct, do you really want to set it like this: class1, class2, class2, class1. Or do you want alternating classes like class1, class2, class1, class2?

    Assuming you want alternating classes look here:
    http://stackoverflow.com/questions/469917/html-table-with-alternating-row-colors-via-xsl

    Regards
    Jesper

  • sun 403 posts 395 karma points
    Mar 18, 2009 @ 11:28
    sun
    0



  • jing.ling 29 posts 20 karma points
    Mar 19, 2009 @ 02:52
    jing.ling
    0

    Thanks for the reply. But I exactly want like this: class1, class2, class2, class1. That's why I don't know how to do it.

    Thanks

  • jing.ling 29 posts 20 karma points
    Mar 20, 2009 @ 02:01
    jing.ling
    0

    Problem solved. thanks for help

Please Sign in or register to post replies

Write your reply to:

Draft