Web Analytics Made Easy -
StatCounter layer position question - CodingForum

Announcement

Collapse
No announcement yet.

layer position question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • layer position question

    please have a look at this:
    http://www.kulsdom.com/newstoday/layer.html

    this is driving me mad, i've been wrestling with the script the whole day.

    the problem is that i can't get rid of the bottom scrollbar...
    and the bottom floating layer width isn't exactly window.innerWidth ...
    this layer has to stay at the window bottom onLoad, onScroll and onResize if you know what i mean.

    please tell me what i'm doing wrong here!

  • #2
    it looks like it is only occurring on my mac.
    pc users don't see a horizontal bottom scroll bar? i do...

    Comment


    • #3
      Try:

      1. using screen.availWidth instead of innerWidth (some users may have bars on the left or right of the window...

      2. get rid of the scroll using CSS overflow:hidden

      3. set the width of the static layer using CSS 100% width
      KOR
      Offshore programming
      -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

      Comment


      • #4
        thanks you!

        i tried a few things to optimize this script.

        but here is an additional question:
        is it possible to add a second layer like the orange one, using the same script?
        what i try is to put a backgroundimage in the right bottom corner of the page with the same properties as the orange layer...

        Comment


        • #5
          Yes, you may do that... not exactly using the same script, but modifying the script to work with 2 or more objects...
          KOR
          Offshore programming
          -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

          Comment

          Working...
          X