• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

DIV Tags moving

Community Beginner ,
Jul 19, 2007 Jul 19, 2007

Copy link to clipboard

Copied

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?
TOPICS
Advanced techniques

Views

313

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 19, 2007 Jul 19, 2007

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 19, 2007 Jul 19, 2007

Copy link to clipboard

Copied

I figured so. Does any know how to do it or can give me an example? Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 19, 2007 Jul 19, 2007

Copy link to clipboard

Copied

LATEST
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>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation