Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Feb 2005
    Posts
    190
    Thanks
    6
    Thanked 0 Times in 0 Posts

    ColdFusion Random Content

    Hey, I need to have 12 chunks of content (text, image, link) displayed 3 at a time presented randomly on page load with CF... how do I do this? Here's a sample of what the markup looks like.

    Code:
    <div>
        <img src="1.jpg" alt="" />
        <span>Text1 <a href="#">Link1</a></span>
    </div>
    <div>
        <img src="2.jpg" alt="" />
        <span>Text2 <a href="#">Link2</a></span>
    </div>
    <div>
        <img src="3.jpg" alt="" />
        <span>Text3 <a href="#">Link3</a></span>
    </div>

  • #2
    Regular Coder
    Join Date
    Feb 2009
    Location
    NJ, USA
    Posts
    476
    Thanks
    2
    Thanked 70 Times in 69 Posts
    Where's this data coming from? A database? Just pieces of HTML code on a page?


  •  

    Posting Permissions

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