Results 1 to 7 of 7

Thread: Jump to top Link - Re-position

  1. #1
    Join Date
    Aug 2005
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Jump to top Link - Re-position

    Does anybody know how i could center the text. You can view the page at http://www.unsignedmuzik.com/gigs.html
    I have tried putting the script into seperate tables but it still appears in the bottom right of the screen and i would like it to be with the rest of the page information.
    Thanks.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Here is where the positioning is set:
    Code:
    w=ns6 || window.opera? window.innerWidth-crosslogo.offsetWidth-20 : ietruebody().clientWidth-crosslogo.offsetWidth-10
    h=ns6 || window.opera? window.innerHeight-crosslogo.offsetHeight-15 : ietruebody().clientHeight-crosslogo.offsetHeight-10
    If you would rather the link be centered, use:
    Code:
    w=ns6 || window.opera? (window.innerWidth-crosslogo.offsetWidth)/2 : (ietruebody().clientWidth-crosslogo.offsetWidth)/2
    h=ns6 || window.opera? window.innerHeight-crosslogo.offsetHeight-15 : ietruebody().clientHeight-crosslogo.offsetHeight-10
    However, it will then be over or, possibly under, your other content. To simply adjust the positioning, play with the red numbers. The first line is the horizontal (distance from the right edge) positioning the second one, vertical (distance from the bottom edge). The first figure in each line influences the Mozilla (FF&NS) and Opera positioning, the second figure IE.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Aug 2005
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Brilliant, thanks very much.

  4. #4
    Join Date
    Mar 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Can somebody help me out?
    I tried changing the numbers as suggested above. But link stays far bottom right corner. I am using maxthon/IE browser. And same case in FF too.

    I am trying to move bit closer to center.

    Any help please?

    thanks,

    drb

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    PLEASE: Include the URL to your problematic webpage that you want help with.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Mar 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I am really sorry. page is in a secure server/univ. Unable to disclose.
    Link remains the same place, no matter how much ever i increase or decrease the numbers.

    drb

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, as shown by tests here and the response from the original post on this, the code works. There must be either something you are doing or not doing that is preventing from working or some problem with your browser or its settings. To understand what might be happening, seeing the page would be best. Could you put up a demo copy of the problem page somewhere more accessible?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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