How can I change the position of a popup bubble?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Haitashi
    New Member
    • Jun 2007
    • 96

    How can I change the position of a popup bubble?

    Where in THIS CODE can I change the position of the popup bubble.

    As I understand it, based on the position of the click it loads the bubble a certain distance from it. I need to lower it on a Y axis. It's position on the X axis is ok.

    ORIGINAL LINK
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    #2
    Originally posted by Haitashi
    Where in THIS CODE can I change the position of the popup bubble.

    As I understand it, based on the position of the click it loads the bubble a certain distance from it. I need to lower it on a Y axis. It's position on the X axis is ok.

    ORIGINAL LINK
    Don't refer the code like this.
    So you want to get it downwards?
    I think simply decrement the "Y" position with the time.

    Debasis Jana

    Comment

    • gits
      Recognized Expert Moderator Expert
      • May 2007
      • 5388

      #3
      hi ...

      after a quick look i think you may adapt the following lines in the _reposition()-method (at the bottom of the function):

      [CODE=javascript]this._elements. container.style .top = zy + "px";[/CODE]
      [CODE=javascript]if(this._elemen ts.inner) this._elements. inner.style.top = (cy + this._propertie s.innerMargin) + 'px';[/CODE]

      before these lines you may add an y-value according to your needs (may be 5px):

      [CODE=javascript]zy += 5;
      cy += 5;
      [/CODE]
      give it a try ... may be it helps?

      kind regards

      Comment

      • dmjpro
        Top Contributor
        • Jan 2007
        • 2476

        #4
        Originally posted by gits
        hi ...

        after a quick look i think you may adapt the following lines in the _reposition()-method (at the bottom of the function):

        [CODE=javascript]this._elements. container.style .top = zy + "px";[/CODE]
        [CODE=javascript]if(this._elemen ts.inner) this._elements. inner.style.top = (cy + this._propertie s.innerMargin) + 'px';[/CODE]

        before these lines you may add an y-value according to your needs (may be 5px):

        [CODE=javascript]zy += 5;
        cy += 5;
        [/CODE]
        give it a try ... may be it helps?

        kind regards
        Oh...Sorry Gits ...... :(
        I messed the General Co-Ordinates System with the Computer ....
        Hehehe ..... :)

        Debasis Jana

        Comment

        • Haitashi
          New Member
          • Jun 2007
          • 96

          #5
          Originally posted by dmjpro
          Don't refer the code like this.
          So you want to get it downwards?
          I think simply decrement the "Y" position with the time.

          Debasis Jana
          The only reason I refered to code like that is because it wouldn't let me copy the entire code here...

          Comment

          • Haitashi
            New Member
            • Jun 2007
            • 96

            #6
            Originally posted by gits
            hi ...

            after a quick look i think you may adapt the following lines in the _reposition()-method (at the bottom of the function):

            [CODE=javascript]this._elements. container.style .top = zy + "px";[/CODE]
            [CODE=javascript]if(this._elemen ts.inner) this._elements. inner.style.top = (cy + this._propertie s.innerMargin) + 'px';[/CODE]

            before these lines you may add an y-value according to your needs (may be 5px):

            [CODE=javascript]zy += 5;
            cy += 5;
            [/CODE]
            give it a try ... may be it helps?

            kind regards
            Thanks! I'll try that and post back my results.

            Comment

            • Haitashi
              New Member
              • Jun 2007
              • 96

              #7
              Thanks Gits! That worked out great!

              Comment

              • gits
                Recognized Expert Moderator Expert
                • May 2007
                • 5388

                #8
                hi ...

                glad to hear that :) ... post back to the forum anytime you have more questions ...

                kind regards

                Comment

                Working...