3 Replies Latest reply on Jul 19, 2007 11:35 AM by Newsgroup_User

    DIV Tags moving

    TheScarecrow Level 1
      I am wanting to move a div tag based on the page loaded. EX. page.cfm?Topic_Key=1 or page.cfm?Topic_Key=2 based on the Topic_Key the div tag would be in a different x and y. Is this possible?
        • 1. Re: DIV Tags moving
          Level 7
          TheScarecrow wrote:
          > I am wanting to move a div tag based on the page loaded. EX. page.cfm?Topic_Key=1 or page.cfm?Topic_Key=2 based on the Topic_Key the div tag would be in a different x and y. Is this possible?

          Yes
          • 2. Re: DIV Tags moving
            TheScarecrow Level 1
            I figured so. Does any know how to do it or can give me an example? Thanks
            • 3. Re: DIV Tags moving
              Level 7
              TheScarecrow wrote:
              > I figured so. Does any know how to do it or can give me an example? Thanks

              Well not much more of one with your simple requirement. How is the
              relationship between a topic_key and a div's position determined? How
              are you positioning a div? How do you want to maintain this?

              But basaiclly it all boils down to using the value of your topic_key to
              branch your logic that generates the div's position output.

              A simple and not very robust example:

              <cfswitch condition="#topic_key#">
              <cfcase value="1">
              <div style="top:100px; left:100px">
              </cfcase>
              <cfcse value="2">
              <div style="top:200px; left:200px">
              </cfcase>
              <cfdefaultcase>
              <div>
              </cfdefaultcase>
              </cfswitch>