Skip to main content
Participant
December 7, 2006
Question

Rotating Content

  • December 7, 2006
  • 3 replies
  • 323 views
I am looking for a way to rotate select content on my homepage - sometimes an image sometimes a block of html - using coldfusion. I have searched the internet but haven't found a solution anywhere. Does anybody have any solutions?
    This topic has been closed for replies.

    3 replies

    December 7, 2006
    Of course! You meant rotating content not rotated text! My brain was elsewhere....
    December 7, 2006
    you may need to be more specific.

    "rotate select content". rotate on an axis? rotate as in show different content at different times?

    i'm assuming the latter...and if that's the case, you have to define "sometimes an image" and "sometimes a block of html". sometimes based on what? an image every 3rd day of the 5th month of leap years and text all other times?

    in any case, it's a simple conditional.

    <cfif CONDITION>
    <img src="myImage.png" />
    <cfelse>
    <div>my div</div>
    </cfif>

    you just need to determine that condition.
    ctgazAuthor
    Participant
    December 7, 2006
    Thanks for your reply. I meant for the content to rotate (as in show different content at different times) based on a user revisting or hitting the refresh button.
    December 7, 2006
    There is a writing-mode property in CSS. This may be browser specific so you'll have to test it.

    See: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/writingmode.asp