Results 1 to 4 of 4

Thread: your code: offsetHeight property for outer container

  1. #1
    Join Date
    Jan 2012
    Posts
    74
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default your code: offsetHeight property for outer container

    http://www.dynamicdrive.com/dynamicindex2/cmarquee2.htm

    offsetHeight property for outer container (and for inner big div) div what values has at t=0s, t=reach end the inner moving, t=2s???

    basically for a moving div like
    cross_marquee=document.getElementById("vmarquee");
    t=0s is what? after 3sec is what?

  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

    Please be more specific. There's no 't' in that script. To what are you referring to when you use 't'?

    BTW - That's an outmoded script. DD keeps those around though, I'm not sure why. I guess they're still of some value to some people.
    - John
    ________________________

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

  3. #3
    Join Date
    Jan 2012
    Posts
    74
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default

    t=0s means time=0 seconds passed
    t=5s means time=5 seconds passed

    this is for my reference , there is not in script.

    what is the updated script URL for new browsers?

  4. #4
    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

    Oh, the offsetHeight doesn't change. The top style property does, and only for the inner div.

    And I didn't say there was an official update. There is this:

    http://home.comcast.net/~jscheuer1/side/marquee.htm

    Which is not a lot better, but at least it's functional in more browsers and has no gap at the end of the scrolling content.

    You can use your browser's 'view source' to get the code.
    - John
    ________________________

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

Similar Threads

  1. Getting OffsetHeight CSS
    By sandeepnair85 in forum CSS
    Replies: 2
    Last Post: 12-10-2011, 04:53 PM
  2. offsetHeight of Dropdown menu
    By gibran in forum JavaScript
    Replies: 2
    Last Post: 05-09-2008, 12:24 PM
  3. AJax Tabs in Firefox just shows Weird Code in Container, Please Help
    By andrewtite in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 03-09-2008, 01:00 AM
  4. offsetheight question
    By Peter Johnson in forum JavaScript
    Replies: 7
    Last Post: 02-27-2007, 04:32 PM
  5. IE, element.offsetHeight = 0!?
    By ItsMeOnly in forum JavaScript
    Replies: 0
    Last Post: 11-27-2006, 03:53 PM

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
  •